Files
kotlin-fork/compiler/testData/diagnostics/tests/dataFlow/local/kt2835.kt
T
Andrey Breslav 63c284e200 Passing DataFlowInfo to local classes/objects
#KT-2835 In Progress
#KT-2225 In Progress
#KT-338 In Progress
2013-08-19 19:05:20 +04:00

8 lines
186 B
Kotlin

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