Files
kotlin-fork/idea/testData/resolve/partialBodyResolve/IfNotIsMyError.dump
T
2014-11-24 20:11:27 +03:00

11 lines
264 B
Plaintext

Resolve target: value-parameter val p: kotlin.Any smart-cast to kotlin.String
----------------------------------------------
fun myError(): Nothing = throw Exception()
fun foo(p: Any) {
if (p !is String) {
myError()
}
println(<caret>p.size)
}