Ensure ForLoopsLowering only handles the CharSequence.iterator()

extension function from the standard library (kotlin.text.iterator()).
This commit is contained in:
Mark Punzalan
2019-11-08 11:32:26 -08:00
committed by max-kammerer
parent 1bd861c5eb
commit dc10d25661
9 changed files with 150 additions and 67 deletions
@@ -19305,6 +19305,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/ranges/forInCharSequenceLengthIncreasedInLoopBody.kt");
}
@TestMetadata("forInCharSequenceWithCustomIterator.kt")
public void testForInCharSequenceWithCustomIterator() throws Exception {
runTest("compiler/testData/codegen/box/ranges/forInCharSequenceWithCustomIterator.kt");
}
@TestMetadata("forInCharSequenceWithMultipleGetFunctions.kt")
public void testForInCharSequenceWithMultipleGetFunctions() throws Exception {
runTest("compiler/testData/codegen/box/ranges/forInCharSequenceWithMultipleGetFunctions.kt");