0dc8629312
^KT-59074 Fixed This solution is not ideal. Ideally, the allopen compiler plugin shouldn't report `private` properites as `open` KT-64980, but it will unpredictably break other things.
9 lines
239 B
Kotlin
Vendored
9 lines
239 B
Kotlin
Vendored
// LANGUAGE:+ProhibitOpenValDeferredInitialization
|
|
open class Foo {
|
|
<!MUST_BE_INITIALIZED_OR_FINAL_OR_ABSTRACT!><!INCOMPATIBLE_MODIFIERS!>private<!> <!INCOMPATIBLE_MODIFIERS!>open<!> val foo: Int<!>
|
|
|
|
init {
|
|
foo = 1
|
|
}
|
|
}
|