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
+2
-3
@@ -14,15 +14,14 @@ class A {
|
||||
|
||||
fun A.foo(): String = "A"
|
||||
|
||||
val x0 = A::foo // function A::foo wins by default
|
||||
val userOfX0 = x0(A())
|
||||
val x0 = A::<!OVERLOAD_RESOLUTION_AMBIGUITY!>foo<!>
|
||||
|
||||
val x1 = ofType<(A) -> Unit>(A::foo)
|
||||
val x2 = ofType<KProperty1<A, Int>>(A::foo)
|
||||
val x3: KProperty1<A, Int> = A::foo
|
||||
val x4: (A) -> String = A::foo
|
||||
|
||||
val y0 = A::bar
|
||||
val y0 = A::<!OVERLOAD_RESOLUTION_AMBIGUITY!>bar<!>
|
||||
val y1 = ofType<(A) -> Unit>(A::bar)
|
||||
val y2 = ofType<KProperty1<A, Int>>(A::bar)
|
||||
val y3: KProperty1<A, Int> = A::bar
|
||||
|
||||
+2
-3
@@ -1,12 +1,11 @@
|
||||
package
|
||||
|
||||
public val userOfX0: kotlin.Unit
|
||||
public val x0: kotlin.reflect.KFunction1<A, kotlin.Unit>
|
||||
public val x0: [ERROR : Type for A::foo]
|
||||
public val x1: (A) -> kotlin.Unit
|
||||
public val x2: kotlin.reflect.KProperty1<A, kotlin.Int>
|
||||
public val x3: kotlin.reflect.KProperty1<A, kotlin.Int>
|
||||
public val x4: (A) -> kotlin.String
|
||||
public val y0: kotlin.reflect.KFunction1<A, kotlin.Unit>
|
||||
public val y0: [ERROR : Type for A::bar]
|
||||
public val y1: (A) -> kotlin.Unit
|
||||
public val y2: kotlin.reflect.KProperty1<A, kotlin.Int>
|
||||
public val y3: kotlin.reflect.KProperty1<A, kotlin.Int>
|
||||
|
||||
Reference in New Issue
Block a user