blob: 22c0973f22c24d0386533b9124845ef5f9b95b8e [file] [log] [blame]
// Expectation for test:
// // Method to test: generative_constructor(A#)
// class A {
// var x, y, z;
// A(x, y) {
// this.x = x;
// this.y = y;
// this.z = this.x / 2;
// }
// }
//
// main() {
// print(new A(123, 'sdf').y);
// try {} finally {} // Do not inline into main.
// }
function(x, y) {
return new V.A(x, y, x / 2);
}