6 lines
106 B
Kotlin
Vendored
6 lines
106 B
Kotlin
Vendored
fun foo(p: Any) {
|
|
if (p !is String) {
|
|
error("Not String")
|
|
}
|
|
println(<caret>p.length)
|
|
} |