Files
kotlin-fork/compiler/testData/diagnostics/tests/dataFlow/local/kt2835.kt
T
2015-01-13 15:02:16 +03:00

9 lines
220 B
Kotlin
Vendored

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