Existing tests correction: forbid val reassignment

This commit is contained in:
svtk
2011-10-24 17:40:16 +04:00
parent b230b3494d
commit 734e8ee3a2
10 changed files with 17 additions and 15 deletions
@@ -268,7 +268,7 @@ public class NamespaceGenTest extends CodegenTestCase {
}
public void testStringPlusEq() throws Exception {
loadText("fun foo(s: String) : String { val result = s; result += s; return result; } ");
loadText("fun foo(s: String) : String { var result = s; result += s; return result; } ");
System.out.println(generateToText());
final Method main = generateFunction();
assertEquals("JarJar", main.invoke(null, "Jar"));