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
@@ -1,9 +1,9 @@
|
||||
class A {
|
||||
fun B.foo() = 2
|
||||
~foo~fun B.foo() = 2
|
||||
}
|
||||
|
||||
class B {
|
||||
~A.foo~fun A.foo() = 1
|
||||
|
||||
fun A.bar() = `A.foo`foo()
|
||||
fun A.bar() = `foo`foo()
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
class A
|
||||
class B {
|
||||
fun foo() = 1
|
||||
~foo~fun foo() = 1
|
||||
~A.foo~fun A.foo() = 2
|
||||
|
||||
fun A.bar() = `A.foo`foo()
|
||||
fun A.bar() = `foo`foo()
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,9 +1,9 @@
|
||||
class A
|
||||
|
||||
class B {
|
||||
fun foo() = 2
|
||||
~foo~fun foo() = 2
|
||||
|
||||
fun A.bar() = `A.foo`foo()
|
||||
fun A.bar() = `foo`foo()
|
||||
}
|
||||
|
||||
~A.foo~fun A.foo() = 1
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
class A {
|
||||
fun foo() = 1
|
||||
~A.foo~fun foo() = 1
|
||||
}
|
||||
class B {
|
||||
}
|
||||
@@ -8,7 +8,7 @@ class B {
|
||||
fun test(a: A, b: B) {
|
||||
with (a) {
|
||||
with (b) {
|
||||
`B.foo`foo()
|
||||
`A.foo`foo()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
fun ~A.foo~A.foo() = 1
|
||||
fun foo() = 2
|
||||
~A.foo~fun A.foo() = 1
|
||||
~foo~fun foo() = 2
|
||||
|
||||
class A {
|
||||
fun test() = `A.foo`foo()
|
||||
fun test() = `foo`foo()
|
||||
}
|
||||
+2
-2
@@ -1,11 +1,11 @@
|
||||
class A {
|
||||
}
|
||||
~extension~fun A.foo() = 1
|
||||
fun foo() = 2
|
||||
~simple~fun foo() = 2
|
||||
|
||||
fun test(a: A) {
|
||||
with (a) {
|
||||
`extension`foo()
|
||||
`simple`foo()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user