Partial body resolve: added test for do-while

This commit is contained in:
Valentin Kipyatkov
2014-11-18 14:58:03 +03:00
parent a89c07924d
commit 38c73f8df4
3 changed files with 15 additions and 0 deletions
@@ -0,0 +1,2 @@
Resolve target: value-parameter val p: kotlin.Any?
Skipped statements:
@@ -0,0 +1,7 @@
fun foo(p: Any?) {
do {
print(p!!)
} while (x())
<caret>p.hashCode()
}
@@ -60,6 +60,12 @@ public class PartialBodyResolveTestGenerated extends AbstractPartialBodyResolveT
doTest(fileName);
}
@TestMetadata("DoWhile.kt")
public void testDoWhile() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/resolve/partialBodyResolve/DoWhile.kt");
doTest(fileName);
}
@TestMetadata("For.kt")
public void testFor() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/resolve/partialBodyResolve/For.kt");