Files
kotlin-fork/idea/testData/resolve/partialBodyResolve/IfNotIsThrow.dump
T
Pavel Kirpichenkov 83144d59be Fix tests
2020-06-10 10:58:42 +03:00

9 lines
241 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)
}