mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
13 lines
312 B
Plaintext
Vendored
13 lines
312 B
Plaintext
Vendored
Resolve target: value-parameter p: kotlin.Any smart-cast to kotlin.String
|
|
----------------------------------------------
|
|
import kotlin.Nothing as MyNothing
|
|
|
|
fun myNothingFun(): MyNothing = throw Exception()
|
|
|
|
fun foo(p: Any) {
|
|
if (p !is String) {
|
|
myNothingFun()
|
|
}
|
|
println(<caret>p.length())
|
|
}
|