Files
kotlin-fork/compiler/testData/diagnostics/tests/scopes/AmbiguityBetweenRootAndPackage.kt
T
Svetlana Isakova c739632c57 report 'ambiguity' on reference, not on the whole expression
as other type inference errors
2013-09-03 13:09:15 +04:00

12 lines
273 B
Kotlin

// FILE: checkAmbiguityBetweenRootAndPackage.kt
package test
val t = <!OVERLOAD_RESOLUTION_AMBIGUITY!>testFun<!>()
// FILE: checkAmbiguityBetweenRootAndPackageRoot.kt
fun testFun() = 12
// FILE: checkAmbiguityBetweenRootAndPackageTest.kt
package test
fun testFun() = 12