Create scope with lazy import resolve
This commit is contained in:
@@ -3,6 +3,9 @@ namespace <root>
|
||||
// <namespace name="kt1080">
|
||||
namespace kt1080
|
||||
|
||||
internal final class kt1080.Some : jet.Any {
|
||||
public final /*constructor*/ fun <init>(): kt1080.Some
|
||||
}
|
||||
// </namespace name="kt1080">
|
||||
// <namespace name="b">
|
||||
namespace b
|
||||
@@ -10,5 +13,8 @@ namespace b
|
||||
// <namespace name="d">
|
||||
namespace d
|
||||
|
||||
public open class b.d.Test : jet.Any {
|
||||
public final /*constructor*/ fun <init>(): b.d.Test
|
||||
}
|
||||
// </namespace name="d">
|
||||
// </namespace name="b">
|
||||
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
//FILE:mainFile.kt
|
||||
//----------------------------------------------------------------------------------
|
||||
package test
|
||||
|
||||
import testing.other.*
|
||||
import testing.TestFun
|
||||
|
||||
// Resolve should be ambiguous
|
||||
val a = TestFun()
|
||||
|
||||
|
||||
//FILE:testing.kt
|
||||
//----------------------------------------------------------------------------------
|
||||
package testing
|
||||
|
||||
class TestFun
|
||||
|
||||
//FILE:testingOther.kt
|
||||
//----------------------------------------------------------------------------------
|
||||
package testing.other
|
||||
|
||||
fun TestFun() = 12
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
internal val a : [ERROR : Type for TestFun()]
|
||||
Reference in New Issue
Block a user