Files
kotlin-fork/compiler/testData/diagnostics/tests/backingField/OpenPrivateValDeferredInit.fir.kt
T
Nikita Bobko 0dc8629312 [FIR] Don't report MUST_BE_INITIALIZED on private open properites
^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.
2024-01-17 14:18:06 +00:00

9 lines
192 B
Kotlin
Vendored

// LANGUAGE:+ProhibitOpenValDeferredInitialization
open class Foo {
<!INCOMPATIBLE_MODIFIERS!>private<!> <!INCOMPATIBLE_MODIFIERS!>open<!> val foo: Int
init {
foo = 1
}
}