13 lines
261 B
Kotlin
Vendored
13 lines
261 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// DIAGNOSTICS: -DEBUG_INFO_LEAKING_THIS
|
|
// LANGUAGE:-ProhibitOpenValDeferredInitialization
|
|
open class Foo {
|
|
<!MUST_BE_INITIALIZED_OR_BE_ABSTRACT!>open val foo: Int<!>
|
|
|
|
init {
|
|
if (1 != 1) {
|
|
foo = 1
|
|
}
|
|
}
|
|
}
|