Test for formatting loop parameter with explicit type

This commit is contained in:
Pavel V. Talanov
2013-08-07 21:27:44 +04:00
parent 0b5e9527d1
commit 8e264a1419
3 changed files with 15 additions and 0 deletions
@@ -0,0 +1,5 @@
fun f(c: Array<Int>) {
for (a: Int in c) {
}
}
@@ -0,0 +1,5 @@
fun f(c: Array<Int>) {
for (a : Int in c) {
}
}
@@ -174,6 +174,11 @@ public class JetFormatterTestGenerated extends AbstractJetFormatterTest {
doTest("idea/testData/formatter/LambdaArrow.after.kt");
}
@TestMetadata("LoopParameterWithExplicitType.after.kt")
public void testLoopParameterWithExplicitType() throws Exception {
doTest("idea/testData/formatter/LoopParameterWithExplicitType.after.kt");
}
@TestMetadata("MultilineFunctionLiteral.after.kt")
public void testMultilineFunctionLiteral() throws Exception {
doTest("idea/testData/formatter/MultilineFunctionLiteral.after.kt");