TypeScript/tests/baselines/reference/parameterPropertyOutsideConstructor.js

15 lines
254 B
JavaScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [parameterPropertyOutsideConstructor.ts]
class C {
foo(public x) {
}
}
//// [parameterPropertyOutsideConstructor.js]
var C = (function () {
function C() {
}
C.prototype.foo = function (x) {
};
return C;
})();