Files
kotlin-fork/compiler/testData/diagnostics/tests/multimodule/kt14249.kt
T
Ilya Kirillov 56e6d5d6b9 [Analysis API] do not preresolve all FirDeclarations to TYPES in tests
Previously, we resolved all declaration to the TYPES phase to collect their sealed inheritors
and thus not really checking lazy resolution to TYPES.
Now sealed class inheritors collection happens in separate LLFirResolveSession
2022-08-10 22:49:13 +02:00

22 lines
280 B
Kotlin
Vendored

// FIR_IDENTICAL
// MODULE: m1
// FILE: test/Foo.java
package test;
class Foo {
static Foo create() { return Foo(); }
void takeFoo(Foo f) {}
}
// MODULE: m2(m1)
// FILE: test.kt
package test
fun test() {
Foo()
val a: Foo = Foo.create()
Foo().takeFoo(a)
}