Importing root scope without members.
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
// FILE: checkAmbiguityBetweenRootAndPackage.kt
|
||||
package test
|
||||
|
||||
val t = <!OVERLOAD_RESOLUTION_AMBIGUITY!>testFun<!>()
|
||||
|
||||
// FILE: checkAmbiguityBetweenRootAndPackageRoot.kt
|
||||
// FILE: root.kt
|
||||
fun testFun() = 12
|
||||
|
||||
// FILE: checkAmbiguityBetweenRootAndPackageTest.kt
|
||||
// FILE: otherPackage.kt
|
||||
package test
|
||||
|
||||
fun testFun() = 12
|
||||
fun testFun() = 12
|
||||
|
||||
// FILE: using.kt
|
||||
import test.*
|
||||
|
||||
val t = <!OVERLOAD_RESOLUTION_AMBIGUITY!>testFun<!>()
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
// FILE: root.kt
|
||||
fun testFun() = 12
|
||||
|
||||
// FILE: otherPackage.kt
|
||||
package test
|
||||
|
||||
fun testFun() = 12
|
||||
|
||||
// FILE: using.kt
|
||||
package test
|
||||
|
||||
val t = testFun()
|
||||
@@ -0,0 +1,25 @@
|
||||
// FILE: rootPackage.kt
|
||||
class Klass {
|
||||
}
|
||||
|
||||
fun function() = ""
|
||||
|
||||
val property = ""
|
||||
|
||||
// FILE: anotherFromRootPackage.kt
|
||||
fun foo() {
|
||||
Klass()
|
||||
function() + property
|
||||
}
|
||||
|
||||
// FILE: anotherFromRootPackage.kt
|
||||
package pkg
|
||||
|
||||
import <!UNRESOLVED_REFERENCE!>Klass<!>
|
||||
import <!UNRESOLVED_REFERENCE!>function<!>
|
||||
import <!UNRESOLVED_REFERENCE!>property<!>
|
||||
|
||||
fun foo() {
|
||||
<!UNRESOLVED_REFERENCE!>Klass<!>()
|
||||
<!UNRESOLVED_REFERENCE!>function<!>() <!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>+<!> <!UNRESOLVED_REFERENCE!>property<!>
|
||||
}
|
||||
Reference in New Issue
Block a user