Files
kotlin-fork/compiler/testData/diagnostics/tests/controlFlowAnalysis/unnecessaryLateinit/lateinitWithPlusAssign.kt
T

10 lines
180 B
Kotlin
Vendored

// FIR_IDENTICAL
class Foo {
lateinit var bar: String
constructor(baz: Int) {
// At best, we should have error here despite of lateinit
bar += baz
}
}