mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
13 lines
308 B
Plaintext
13 lines
308 B
Plaintext
Resolve target: value-parameter val p: kotlin.String? smart-cast to kotlin.String
|
|
----------------------------------------------
|
|
fun foo(p: String?, p1: Any?) {
|
|
if (p1 == null) return
|
|
|
|
fun localError(): Nothing = throw Exception()
|
|
|
|
if (p == null) {
|
|
localError()
|
|
}
|
|
<caret>p.size
|
|
}
|