TypeScript/tests/cases/compiler/constructorParametersInVariableDeclarations.ts
2014-07-12 17:30:19 -07:00

16 lines
259 B
TypeScript

class A {
private a = x;
private b = { p: x };
private c = () => x;
constructor(x: number) {
}
}
class B {
private a = x;
private b = { p: x };
private c = () => x;
constructor() {
var x = 1;
}
}