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