mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 15:53:55 +00:00
12 lines
346 B
Plaintext
Vendored
12 lines
346 B
Plaintext
Vendored
Resolve target: value-parameter p: kotlin.Any?
|
|
----------------------------------------------
|
|
// this test will fail if control flow analysis will start to produce smart-casts after "while(2 * 2 == 4)"
|
|
|
|
fun x(): Boolean{}
|
|
|
|
fun foo(p: Any?) {
|
|
/* STATEMENT DELETED: while(2 * 2 == 4) { print(p!!) if (x()) break } */
|
|
|
|
<caret>p.hashCode()
|
|
}
|