"Rename on import" hides importing of the same symbol by other imports with the original name

This commit is contained in:
Valentin Kipyatkov
2016-01-13 20:22:40 +03:00
parent 47041885ca
commit 5a079defc7
13 changed files with 111 additions and 32 deletions
@@ -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>){}
@@ -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