Files
kotlin-fork/compiler/testData/diagnostics/tests/scopes/kt1080.fir.kt
T
Tianyu Geng 18f7a760bb FIR checker: report unresolved reference in imports
Compared to FE1.0, instead of using UNRESOLVED_REFERENCE, a new
UNRESOLVED_IMPORT diagnostic is introduced. This is so that we can use a
different positioning strategy to highlight the last part of the import
if the entire import is passed.

Also, this change fixed some incorrectly rejected imports in FIR. Such
cases are covered the newly added test file staticFunAndPropertyImport.kt
2021-12-01 23:45:18 +03:00

20 lines
339 B
Kotlin
Vendored

//FILE:a.kt
//KT-1080 Don't use previously imported packages while resolving import references
package kt1080
import reflect.Constructor
import b.*
import <!UNRESOLVED_IMPORT!>d<!>
import d.Test
import b.<!PACKAGE_CANNOT_BE_IMPORTED!>d<!>
class Some: <!UNRESOLVED_REFERENCE!>Test<!>()
//FILE:b.kt
package b.d
public open class Test