diff --git a/idea/testData/intentions/addForLoopIndices/sequence.kt b/idea/testData/intentions/addForLoopIndices/sequence.kt new file mode 100644 index 00000000000..cc90fb6fd4e --- /dev/null +++ b/idea/testData/intentions/addForLoopIndices/sequence.kt @@ -0,0 +1,6 @@ +// WITH_RUNTIME +fun foo(bar: Sequence) { + for (a in bar) { + + } +} \ No newline at end of file diff --git a/idea/testData/intentions/addForLoopIndices/stream.kt.after b/idea/testData/intentions/addForLoopIndices/sequence.kt.after similarity index 50% rename from idea/testData/intentions/addForLoopIndices/stream.kt.after rename to idea/testData/intentions/addForLoopIndices/sequence.kt.after index 65080a14bda..29a31946b3f 100644 --- a/idea/testData/intentions/addForLoopIndices/stream.kt.after +++ b/idea/testData/intentions/addForLoopIndices/sequence.kt.after @@ -1,5 +1,5 @@ -//WITH_RUNTIME -fun foo(bar: Stream) { +// WITH_RUNTIME +fun foo(bar: Sequence) { for ((index, a) in bar.withIndex()) { } diff --git a/idea/testData/intentions/addForLoopIndices/stream.kt b/idea/testData/intentions/addForLoopIndices/stream.kt deleted file mode 100644 index 94eb1690af9..00000000000 --- a/idea/testData/intentions/addForLoopIndices/stream.kt +++ /dev/null @@ -1,6 +0,0 @@ -//WITH_RUNTIME -fun foo(bar: Stream) { - for (a in bar) { - - } -} \ No newline at end of file diff --git a/idea/tests/org/jetbrains/kotlin/idea/intentions/IntentionTestGenerated.java b/idea/tests/org/jetbrains/kotlin/idea/intentions/IntentionTestGenerated.java index dbb199e7046..9da117906a6 100644 --- a/idea/tests/org/jetbrains/kotlin/idea/intentions/IntentionTestGenerated.java +++ b/idea/tests/org/jetbrains/kotlin/idea/intentions/IntentionTestGenerated.java @@ -148,15 +148,15 @@ public class IntentionTestGenerated extends AbstractIntentionTest { doTest(fileName); } - @TestMetadata("simpleIntList.kt") - public void testSimpleIntList() throws Exception { - String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/addForLoopIndices/simpleIntList.kt"); + @TestMetadata("sequence.kt") + public void testSequence() throws Exception { + String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/addForLoopIndices/sequence.kt"); doTest(fileName); } - @TestMetadata("stream.kt") - public void testStream() throws Exception { - String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/addForLoopIndices/stream.kt"); + @TestMetadata("simpleIntList.kt") + public void testSimpleIntList() throws Exception { + String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/addForLoopIndices/simpleIntList.kt"); doTest(fileName); }