Files
Pavel Kirpichenkov ce65f3681b Fix tests
Original commit: 83144d59be7fa5967a1cb509af0bbd5fd7f8ad32

GitOrigin-RevId: 4a8f8e4fb961b2dbd8c66dab41ac9ff879ba595f
2020-07-08 21:00:31 +03:00

8 lines
140 B
Kotlin

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