diff --git a/idea/testData/intentions/specifyType/afterLoopParameter.kt b/idea/testData/intentions/specifyType/afterLoopParameter.kt new file mode 100644 index 00000000000..d9a69e3f3c8 --- /dev/null +++ b/idea/testData/intentions/specifyType/afterLoopParameter.kt @@ -0,0 +1,9 @@ +// "Specify Type Explicitly" "true" +import java.util.HashMap +import java.util.Map + +fun foo(map : HashMap) { + for (entry : Map.Entry in map.entrySet()) { + + } +} \ No newline at end of file diff --git a/idea/testData/intentions/specifyType/beforeLoopParameter.kt b/idea/testData/intentions/specifyType/beforeLoopParameter.kt new file mode 100644 index 00000000000..3e01f220630 --- /dev/null +++ b/idea/testData/intentions/specifyType/beforeLoopParameter.kt @@ -0,0 +1,8 @@ +// "Specify Type Explicitly" "true" +import java.util.HashMap + +fun foo(map : HashMap) { + for (entry in map.entrySet()) { + + } +} \ No newline at end of file diff --git a/idea/tests/org/jetbrains/jet/plugin/intentions/SpecifyTypeExplicitlyTest.java b/idea/tests/org/jetbrains/jet/plugin/intentions/SpecifyTypeExplicitlyTest.java index a0f1be09b42..191a393d646 100644 --- a/idea/tests/org/jetbrains/jet/plugin/intentions/SpecifyTypeExplicitlyTest.java +++ b/idea/tests/org/jetbrains/jet/plugin/intentions/SpecifyTypeExplicitlyTest.java @@ -49,6 +49,10 @@ public class SpecifyTypeExplicitlyTest extends LightIntentionActionTestCase { doTest(); } + public void testLoopParameter() { + doTest(); + } + @Override protected String getTestDataPath() { return PluginTestCaseBase.getTestDataPathBase() + "/intentions/";