TypeScript/tests/baselines/reference/parameterPropertyOutsideConstructor.js
2014-07-12 17:30:19 -07:00

15 lines
254 B
JavaScript

//// [parameterPropertyOutsideConstructor.ts]
class C {
foo(public x) {
}
}
//// [parameterPropertyOutsideConstructor.js]
var C = (function () {
function C() {
}
C.prototype.foo = function (x) {
};
return C;
})();