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:
Alexander Udalov
2015-12-09 22:22:36 +03:00
committed by Stanislav Erokhin
parent 66a031f7a0
commit 239502368a
73 changed files with 163 additions and 173 deletions
+1 -5
View File
@@ -1,7 +1,3 @@
class Foo() {
fun Int.invoke() {}
}
fun bar(f: Foo) {
fun bar(f: Int.() -> Unit) {
1.f<caret>()
}
+3 -7
View File
@@ -1,8 +1,4 @@
class Foo() {
fun Int.invoke() {}
}
fun bar(f: Foo) {
fun bar(f: Int.() -> Unit) {
1.f<caret>()
}
@@ -10,8 +6,8 @@ fun bar(f: Foo) {
Resolved call:
Resulting descriptor: fun Int.invoke(): Unit defined in Foo
Resulting descriptor: operator fun Int.invoke(): Unit defined in kotlin.Function1
Explicit receiver kind = BOTH_RECEIVERS
Dispatch receiver = f {Foo}
Dispatch receiver = f {[@kotlin.Extension] Function1<Int, Unit>}
Extension receiver = 1 {Int}