Update test data for tower resolution algorithm
- locals win - unary calls to plus/minus are not supported in favor of unaryPlus/unaryMinus - unqualified nested classes are temporarily reported as unresolved - function without receiver win against extension function - explicit import win against star import
This commit is contained in:
committed by
Stanislav Erokhin
parent
66a031f7a0
commit
239502368a
-3
@@ -1,6 +1,3 @@
|
||||
// ERROR: Overload resolution ambiguity: public fun a.A.ext(): kotlin.Unit defined in a public fun a.A.ext(): kotlin.Unit defined in to
|
||||
// ERROR: Overload resolution ambiguity: public var a.A.p: kotlin.Int defined in a public var a.A.p: kotlin.Int defined in to
|
||||
// ERROR: Overload resolution ambiguity: public var a.A.p: kotlin.Int defined in a public var a.A.p: kotlin.Int defined in to
|
||||
package to
|
||||
|
||||
import a.A
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
// ERROR: Overload resolution ambiguity: public fun a.A.ext(): kotlin.Unit defined in a public fun a.A.ext(): kotlin.Unit defined in to
|
||||
// ERROR: Overload resolution ambiguity: public operator fun a.A.plus(a: a.A): kotlin.Unit defined in a public operator fun a.A.plus(a: a.A): kotlin.Unit defined in to
|
||||
// ERROR: Overload resolution ambiguity: public infix fun a.A.infix(a: a.A): kotlin.Unit defined in a public infix fun a.A.infix(a: a.A): kotlin.Unit defined in to
|
||||
// ERROR: Overload resolution ambiguity: public operator fun a.A.unaryMinus(): kotlin.Unit defined in a public operator fun a.A.unaryMinus(): kotlin.Unit defined in to
|
||||
// ERROR: Overload resolution ambiguity: public val a.A.p: kotlin.Int defined in a public val a.A.p: kotlin.Int defined in to
|
||||
package to
|
||||
|
||||
import a.A
|
||||
|
||||
+2
-2
@@ -1,13 +1,13 @@
|
||||
// ERROR: Nested class 'Nested' should be qualified as 'A.Nested'
|
||||
package to
|
||||
|
||||
import a.A
|
||||
import a.ext
|
||||
import a.f
|
||||
|
||||
fun g() {
|
||||
f {
|
||||
Inner()
|
||||
Nested()
|
||||
A.Nested()
|
||||
foo()
|
||||
ext()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user