TypeScript/tests/baselines/reference/constructorParametersInVariableDeclarations.js

37 lines
713 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [constructorParametersInVariableDeclarations.ts]
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;
}
}
//// [constructorParametersInVariableDeclarations.js]
var A = (function () {
function A(x) {
this.a = x;
this.b = { p: x };
this.c = function () { return x; };
2014-07-13 01:04:16 +02:00
}
return A;
})();
var B = (function () {
function B() {
this.a = x;
this.b = { p: x };
this.c = function () { return x; };
2014-07-13 01:04:16 +02:00
var x = 1;
}
return B;
})();