Partial body resolve: corrected it for explicit function type but unfortunately it does not work for non-explicit type yet

This commit is contained in:
Valentin Kipyatkov
2014-11-21 12:32:26 +03:00
parent 058af69078
commit cc84e9682b
5 changed files with 36 additions and 3 deletions
@@ -0,0 +1,6 @@
fun foo() = run {
print("a")
val v = 1
print(<caret>v)
"x"
}
@@ -0,0 +1,8 @@
Resolve target: val v: kotlin.Int
----------------------------------------------
fun foo(): String = run {
// STATEMENT DELETED: print("a")
val v = 1
print(<caret>v)
"x"
}
@@ -0,0 +1,6 @@
fun foo(): String = run {
print("a")
val v = 1
print(<caret>v)
"x"
}