TypeScript/tests/cases/compiler/constructorParametersInVariableDeclarations.ts

16 lines
259 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
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;
}
}