Added init keyword to testdata

This commit is contained in:
Stanislav Erokhin
2015-04-01 05:21:26 +03:00
parent 6ab83c9b8c
commit b152211096
88 changed files with 114 additions and 114 deletions
@@ -388,7 +388,7 @@ public class PackageGenTest extends CodegenTestCase {
}
public void testPutBooleanAsVoid() throws Exception {
loadText("class C(val x: Int) { { x > 0 } } fun box() { val c = C(0) } ");
loadText("class C(val x: Int) { init { x > 0 } } fun box() { val c = C(0) } ");
Method main = generateFunction();
main.invoke(null); // must not fail
}