18f7a760bb
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
20 lines
339 B
Kotlin
Vendored
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
|