Files
kotlin-fork/compiler/testData/diagnostics/tests/constructorConsistency/companion.kt
T
2016-06-03 09:45:37 +03:00

19 lines
297 B
Kotlin
Vendored

class My {
val x = <!DEBUG_INFO_LEAKING_THIS!>foo<!>()
val w = bar()
fun foo() = 0
companion object {
val y = <!UNRESOLVED_REFERENCE!>foo<!>()
val u = <!DEBUG_INFO_LEAKING_THIS!>bar<!>()
val z: String? = bar()
fun bar() = "1"
}
}