Files
kotlin-fork/compiler/testData/diagnostics/tests/dataFlow/local/kt2835.fir.kt
T

9 lines
193 B
Kotlin
Vendored

open class X(val s: String)
fun f(a: String?) {
if (a != null) {
object : X(a) { // Type mismatch: inferred type is kotlin.String? but kotlin.String was expected
}
}
}