TypeScript/tests/cases/compiler/capturedParametersInInitializers2.ts

15 lines
256 B
TypeScript

// @target: es5
function foo(
y = class {
static c = x;
get [x]() {return x;}
constructor() { x; }
[z]() { return z; }
},
x = 1,
z = 2
) {
y.c
}
function foo2(y = class {[x] = x}, x = 1) {
}