mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
9 lines
230 B
Plaintext
Vendored
9 lines
230 B
Plaintext
Vendored
Resolve target: value-parameter p: kotlin.Any smart-cast to kotlin.String
|
|
----------------------------------------------
|
|
fun foo(p: Any) {
|
|
if (p !is String) {
|
|
error("Not String")
|
|
}
|
|
println(<caret>p.length())
|
|
}
|