Files
kotlin-fork/idea/testData/resolve/partialBodyResolve/IfNotIsMyError.kt
T

8 lines
138 B
Kotlin

fun myError(): Nothing = throw Exception()
fun foo(p: Any) {
if (p !is String) {
myError()
}
println(<caret>p.size)
}