For-loop generation rewritten for the case of explicit iterator usage
This implementation includes multi-declarations already, but tests are coming in the next commits. Old ForLoopgenerator renamed to IntrinsicForLoopGenerator, and will be unified with the newly introduced interface soon. Side-effect: KT-2668 Codegen doesn't handle member extensions in for #KT-2668 Fixed
This commit is contained in:
@@ -194,6 +194,21 @@ public class ControlStructuresTest extends CodegenTestCase {
|
||||
blackBoxFile("controlStructures/forUserType.jet");
|
||||
}
|
||||
|
||||
public void testForLoopMemberExtensionNext() throws Exception {
|
||||
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
|
||||
blackBoxFile("controlStructures/forLoopMemberExtensionNext.kt");
|
||||
}
|
||||
|
||||
public void testForLoopMemberExtensionHasNext() throws Exception {
|
||||
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
|
||||
blackBoxFile("controlStructures/forLoopMemberExtensionHasNext.kt");
|
||||
}
|
||||
|
||||
public void testForLoopMemberExtensionAll() throws Exception {
|
||||
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
|
||||
blackBoxFile("controlStructures/forLoopMemberExtensionAll.kt");
|
||||
}
|
||||
|
||||
public void testForIntArray() throws Exception {
|
||||
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
|
||||
blackBoxFile("controlStructures/forIntArray.jet");
|
||||
|
||||
Reference in New Issue
Block a user