"Rename on import" hides importing of the same symbol by other imports with the original name
This commit is contained in:
+4
-1
@@ -2,4 +2,7 @@ package a
|
||||
|
||||
import a.A as ER
|
||||
|
||||
class A()
|
||||
interface A {
|
||||
val a: A
|
||||
val b: ER
|
||||
}
|
||||
|
||||
+3
-2
@@ -2,8 +2,9 @@ package
|
||||
|
||||
package a {
|
||||
|
||||
public final class A {
|
||||
public constructor A()
|
||||
public interface A {
|
||||
public abstract val a: a.A
|
||||
public abstract val b: a.A
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
@@ -2,10 +2,21 @@
|
||||
package a
|
||||
|
||||
val x = 1
|
||||
val y = 1
|
||||
|
||||
// FILE: b.kt
|
||||
package b
|
||||
|
||||
import a.x as AX
|
||||
val x = ""
|
||||
|
||||
val y = AX
|
||||
// FILE: c.kt
|
||||
package c
|
||||
|
||||
import a.x as AX
|
||||
import a.*
|
||||
import b.*
|
||||
import a.y as AY
|
||||
|
||||
val v1: Int = AX
|
||||
val v2: String = x
|
||||
val v3 = <!UNRESOLVED_REFERENCE!>y<!>
|
||||
|
||||
@@ -2,8 +2,15 @@ package
|
||||
|
||||
package a {
|
||||
public val x: kotlin.Int = 1
|
||||
public val y: kotlin.Int = 1
|
||||
}
|
||||
|
||||
package b {
|
||||
public val y: kotlin.Int = 1
|
||||
public val x: kotlin.String = ""
|
||||
}
|
||||
|
||||
package c {
|
||||
public val v1: kotlin.Int = 1
|
||||
public val v2: kotlin.String = ""
|
||||
public val v3: [ERROR : Type for y]
|
||||
}
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
import kotlin.collections.map as map1
|
||||
import kotlin.Array as KotlinArray
|
||||
|
||||
fun f() {
|
||||
listOf(1).map1 { it.hashCode() }
|
||||
listOf(1).<!UNRESOLVED_REFERENCE_WRONG_RECEIVER!>map<!> { <!UNRESOLVED_REFERENCE!>it<!>.<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>hashCode<!>() }
|
||||
}
|
||||
|
||||
fun g(<!UNUSED_PARAMETER!>a1<!>: KotlinArray<Int>, <!UNUSED_PARAMETER!>a2<!>: <!UNRESOLVED_REFERENCE!>Array<!><Int>){}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
package
|
||||
|
||||
public fun f(): kotlin.Unit
|
||||
public fun g(/*0*/ a1: kotlin.Array<kotlin.Int>, /*1*/ a2: [ERROR : Array<Int>]<kotlin.Int>): kotlin.Unit
|
||||
Reference in New Issue
Block a user