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
+7 -6
View File
@@ -1,10 +1,11 @@
object A {
class B
fun foo() = 1
object Bar{}
class B
fun foo() = 1
object Bar {}
}
fun <T> test(a: T) {
val c = (a as A)
c.<error descr="[NESTED_CLASS_ACCESSED_VIA_INSTANCE_REFERENCE] Nested class 'B' accessed via instance reference">B</error>()
}
val c = (a as A)
// TODO: report "nested class accessed via instance reference"
c.<error descr="[UNRESOLVED_REFERENCE] Unresolved reference: B">B</error>()
}