99c7fab401
Now there are no real unresolved imports - all imports are considered resolved starting from the IMPORTS phase and until they are proven otherwise in the checkers. Because of that, some `UNRESOLVED_REFERENCE` diagnostics are gone - in the cases when such references were actually resolved through those unsupported imports. The compilation of incorrect files should not be affected by this, the checkers would still prevent the compilation of the files with incorrect imports. But now the references to the declarations from such imports no longer will be highlighted as unresolved references.
33 lines
406 B
Kotlin
Vendored
33 lines
406 B
Kotlin
Vendored
package d
|
|
|
|
//import from objects before properties resolve
|
|
|
|
import d.<!CANNOT_ALL_UNDER_IMPORT_FROM_SINGLETON!>A<!>.*
|
|
import d.M.R
|
|
import d.M.R.bar
|
|
import d.M.T
|
|
import d.M.Y
|
|
|
|
var r: T = T()
|
|
val y: T = Y
|
|
|
|
fun f() {
|
|
bar()
|
|
R.bar()
|
|
B.foo()
|
|
}
|
|
|
|
object M {
|
|
object R {
|
|
fun bar() {}
|
|
}
|
|
open class T() {}
|
|
|
|
object Y : T() {}
|
|
}
|
|
|
|
object A {
|
|
object B {
|
|
fun foo() {}
|
|
}
|
|
} |