FIR: handle double-imported constructors properly

This commit is contained in:
Mikhail Glukhikh
2022-03-14 14:32:02 +03:00
committed by Space
parent bd790b792c
commit b038ae8b0c
3 changed files with 25 additions and 49 deletions
@@ -1,41 +0,0 @@
// FILE: StarImported.kt
package star
class SomeClass
fun foo() {}
val bar = 1
// FILE: ExplicitImported.kt
package explicit
class AnotherClass
fun baz() {}
val gau = 2
// FILE: Test.kt
import star.*
import star.*
import explicit.<!CONFLICTING_IMPORT!>AnotherClass<!>
import explicit.<!CONFLICTING_IMPORT!>AnotherClass<!>
import explicit.baz
import explicit.baz
import explicit.gau
import explicit.gau
fun useSomeClass(): SomeClass = <!RESOLUTION_TO_CLASSIFIER!>SomeClass<!>()
fun useAnotherClass(): AnotherClass = <!RESOLUTION_TO_CLASSIFIER!>AnotherClass<!>()
fun test() {
foo()
baz()
val x = bar
val y = gau
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// FILE: StarImported.kt
package star