Partial body resolve: found group of cases incorrectly handled by the current implementation

This commit is contained in:
Valentin Kipyatkov
2014-11-20 12:23:04 +03:00
parent 00d9c94a8b
commit 166d580682
4 changed files with 29 additions and 0 deletions
@@ -0,0 +1,2 @@
Resolve target: value-parameter val x: kotlin.Any?
Skipped statements:
@@ -0,0 +1,15 @@
fun foo(x: Any?, p: Int) {
if (p > 0) {
val x = f()
print(x!!)
}
else {
val x = g()
print(x!!)
}
<caret>x.hashCode()
}
fun f(): Any? = null
fun g(): Any? = null
@@ -0,0 +1,2 @@
Resolve target: value-parameter val x: kotlin.Any?
Skipped statements:
@@ -0,0 +1,10 @@
fun foo(x: Any?) {
if (x == null) {
val error = f()
error("error")
}
<caret>x.hashCode()
}
fun f(): (String) -> Unit = {}