35 lines
584 B
TypeScript
35 lines
584 B
TypeScript
//// [es5-system.ts]
|
|
|
|
export default class A
|
|
{
|
|
constructor ()
|
|
{
|
|
|
|
}
|
|
|
|
public B()
|
|
{
|
|
return 42;
|
|
}
|
|
}
|
|
|
|
|
|
//// [es5-system.js]
|
|
System.register([], function(exports_1) {
|
|
"use strict";
|
|
var A;
|
|
return {
|
|
setters:[],
|
|
execute: function() {
|
|
A = (function () {
|
|
function A() {
|
|
}
|
|
A.prototype.B = function () {
|
|
return 42;
|
|
};
|
|
return A;
|
|
})();
|
|
exports_1("default", A);
|
|
}
|
|
}
|
|
});
|