239502368a
- 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
12 lines
253 B
Kotlin
Vendored
12 lines
253 B
Kotlin
Vendored
object A {
|
|
class B
|
|
fun foo() = 1
|
|
object Bar {}
|
|
}
|
|
|
|
fun <T> test(a: T) {
|
|
val c = (a as A)
|
|
// TODO: report "nested class accessed via instance reference"
|
|
c.<error descr="[UNRESOLVED_REFERENCE] Unresolved reference: B">B</error>()
|
|
}
|