Files
kotlin-fork/compiler/testData/diagnostics/tests/nullabilityAndAutoCasts/dataFlowInfoAfterExclExcl.kt
T
Svetlana Isakova cd6934bee8 fixed bug in 'DataFlowInfo.getPossibleTypes'
parent types should be enriched as well
2013-12-11 19:53:51 +04:00

8 lines
163 B
Kotlin

fun foo(d: Any?) {
if (d is String?) {
<!DEBUG_INFO_AUTOCAST!>d<!>!!
doString(<!DEBUG_INFO_AUTOCAST!>d<!>)
}
}
fun doString(s: String) = s