Existing tests correction: forbid val reassignment
This commit is contained in:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user