11 lines
262 B
Plaintext
Vendored
11 lines
262 B
Plaintext
Vendored
Resolve target: value-parameter 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.length)
|
|
}
|