[LL FIR] add test for 'for' on top level in script
^KT-61260
This commit is contained in:
committed by
Space Team
parent
ae85c7bfe3
commit
1a21affe1d
+3
@@ -0,0 +1,3 @@
|
|||||||
|
for ((index, _) in emptyList<Int>().withIndex()) {
|
||||||
|
|
||||||
|
}
|
||||||
+4
@@ -0,0 +1,4 @@
|
|||||||
|
/* anchor --> */for (/* anchor --> */(index, _)/* <-- */ in emptyList<Int>().withIndex()) {
|
||||||
|
|
||||||
|
}
|
||||||
|
/* <-- */
|
||||||
+6
@@ -41,4 +41,10 @@ public class ScriptNonLocalDeclarationAnchorTestGenerated extends AbstractScript
|
|||||||
public void testStatements() throws Exception {
|
public void testStatements() throws Exception {
|
||||||
runTest("analysis/low-level-api-fir/testdata/nonLocalDeclarationAnchors/statements.kts");
|
runTest("analysis/low-level-api-fir/testdata/nonLocalDeclarationAnchors/statements.kts");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("topLevelFor.kts")
|
||||||
|
public void testTopLevelFor() throws Exception {
|
||||||
|
runTest("analysis/low-level-api-fir/testdata/nonLocalDeclarationAnchors/topLevelFor.kts");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user