Files
kotlin-fork/compiler/testData/diagnostics/tests/backingField/ReadInAnonymous.kt
T
Denis Zharkov f07566d30d Add warning for initializers with obsolete syntax
Expected 'init' keyword before class initializer
2015-03-11 17:45:26 +03:00

7 lines
117 B
Kotlin
Vendored

class ReadByAnotherPropertyInitializer() {
val a = 1
init {
val <!UNUSED_VARIABLE!>x<!> = $a
}
}