Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/expresssions/plusWithAssignSmartCast.kt
T

11 lines
189 B
Kotlin
Vendored

class Foo {
var bar: String? = null
fun addToBar(other: String) {
if (bar == null) {
bar = other
} else {
bar += " $other"
}
}
}