mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 15:53:55 +00:00
9 lines
243 B
Plaintext
Vendored
9 lines
243 B
Plaintext
Vendored
Resolve target: value-parameter p: kotlin.Any smart-cast to kotlin.String
|
|
----------------------------------------------
|
|
fun foo(p: Any) {
|
|
if (p !is String) {
|
|
throw IllegalArgumentException()
|
|
}
|
|
println(<caret>p.length())
|
|
}
|