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