Files
kotlin-fork/idea/testData/resolve/partialBodyResolve/IfNotIsMyError.kt
T
Pavel Kirpichenkov 83144d59be Fix tests
2020-06-10 10:58:42 +03:00

8 lines
140 B
Kotlin
Vendored

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