For some reason, I'm getting `IllegalStateExceptio...
# compiler
c
For some reason, I'm getting `IllegalStateException`s for expected FIR errors in my diagnostics tests. Full test kt: https://paste.ofcode.org/yFaZvQjQFy7JMnVKRHULnp Test class:
Copy code
class MyClass : MySuperClass() {
	private fun <!SETTER_DECL_TARGET_PROPERTY_NOT_VISIBLE!>`set-someProperty`<!>(value: Int) {
		someProperty = value.toString()
	}
}
Log:
Copy code
java.lang.IllegalStateException: SETTER_DECL_TARGET_PROPERTY_NOT_VISIBLE: Setter target ''var someProperty: String' defined in 'foo.MySuperClass'' is not visible in this scope. at MyClass.kt:(212,230)
at org.jetbrains.kotlin.test.backend.handlers.NoFirCompilationErrorsHandler.processModule(NoFirCompilationErrorsHandler.kt:54)
Does anyone know what's going on? I'm so close to getting this to work.
d
Phased tests expect that all modules in the test file except the leaf one are compilable. The reason for that is that cross-module dependencies are in bunary format, so to analyze the module
main
it's needed for compiler to compile
lib
to the bytecode. Which is impossible if there are some compilation errors.
c
Ah ok thank you so much!