Files
kotlin-fork/compiler/testData/diagnostics/tests/subtyping/topLevelAnonymousObjects.kt
T
2014-06-02 22:05:32 +04:00

6 lines
119 B
Kotlin

private var x = object {}
fun test() {
// No error, because the type of x is normalized to Any
x = object {}
}