Partial body resolve: added more tests

This commit is contained in:
Valentin Kipyatkov
2014-11-21 12:19:23 +03:00
parent 0dd77a8ed3
commit 058af69078
13 changed files with 181 additions and 3 deletions
@@ -0,0 +1,16 @@
Resolve target: val x: kotlin.Any?
----------------------------------------------
fun foo() {
@MainLoop
for (i in 1..10) {
val x = take()
if (x == null) {
while (true) {
break@MainLoop
}
}
<caret>x.hashCode()
}
}
fun take(): Any? = null