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
+7
-6
@@ -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>()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user