mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 15:53:55 +00:00
11 lines
264 B
Plaintext
Vendored
11 lines
264 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())
|
|
}
|