Added test for "Specify type explicitly" for loop parameters.

#KT-1890 fixed
This commit is contained in:
Evgeny Gerashchenko
2012-05-03 21:04:43 +04:00
parent 14c7b6d74c
commit d9fc85f6f5
3 changed files with 21 additions and 0 deletions
@@ -0,0 +1,9 @@
// "Specify Type Explicitly" "true"
import java.util.HashMap
import java.util.Map
fun foo(map : HashMap<String, Int>) {
for (<caret>entry : Map.Entry<String, Int> in map.entrySet()) {
}
}
@@ -0,0 +1,8 @@
// "Specify Type Explicitly" "true"
import java.util.HashMap
fun foo(map : HashMap<String, Int>) {
for (<caret>entry in map.entrySet()) {
}
}
@@ -49,6 +49,10 @@ public class SpecifyTypeExplicitlyTest extends LightIntentionActionTestCase {
doTest();
}
public void testLoopParameter() {
doTest();
}
@Override
protected String getTestDataPath() {
return PluginTestCaseBase.getTestDataPathBase() + "/intentions/";