From a2f510932c2132f6d8092be9d88a69047c8ea0d5 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Sat, 1 Oct 2011 10:56:24 +0200 Subject: [PATCH] testdata --- idea/testData/codegen/controlStructures/ifBlock.jet | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/idea/testData/codegen/controlStructures/ifBlock.jet b/idea/testData/codegen/controlStructures/ifBlock.jet index e69de29bb2d..4905fb2efc6 100644 --- a/idea/testData/codegen/controlStructures/ifBlock.jet +++ b/idea/testData/codegen/controlStructures/ifBlock.jet @@ -0,0 +1,10 @@ +import java.util.* + +fun concat(l: List): String? { + val sb = StringBuilder() + for(s in l) { + val x = if(l.size() > 1) { "T" } else { "F" }; + sb.append(x) + } + return sb.toString() +}