tschuchortdev / kotlin-compile-testing

A library for testing Kotlin and Java annotation processors, compiler plugins and code generation
Mozilla Public License 2.0
658 stars 63 forks source link

Sample code from README produces "Unresolved reference: TestEnvClass" #295

Open breandan opened 2 years ago

breandan commented 2 years ago

I tried to use your library, which looks very nice, but I am having some trouble reproducing the sample code from the README. Do you have any suggestions how it can be fixed? I am attaching the test class below, which should fail but passes. Thank you!

tschuchortdev commented 2 years ago

If I had to guess, I would add an import to the test files (import ai.hypergraph.kotlingrad.typelevel.CompileTest.TestEnvClass or something like that). In the README, an import was not necessary because the TestEnvClass was top-level without a package declaration. If that doesn't fix it I'll have to clone your project and take a closer look.