56e6d5d6b9
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
22 lines
280 B
Kotlin
Vendored
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)
|
|
}
|