Added init keyword to testdata
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user