Files
kotlin-fork/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/dataFlowInfoAfterExclExcl.kt
T
2019-12-25 16:19:18 +03:00

10 lines
210 B
Kotlin
Vendored

// !WITH_NEW_INFERENCE
fun foo(d: Any?) {
if (d is String?) {
<!DEBUG_INFO_SMARTCAST!>d<!>!!
doString(<!NI;TYPE_MISMATCH, OI;DEBUG_INFO_SMARTCAST!>d<!>)
}
}
fun doString(s: String) = s