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

26 lines
432 B
JavaScript

//// [classImplementsImportedInterface.ts]
module M1 {
export interface I {
foo();
}
}
module M2 {
import T = M1.I;
class C implements T {
foo() {}
}
}
//// [classImplementsImportedInterface.js]
var M2;
(function (M2) {
var C = (function () {
function C() {
}
C.prototype.foo = function () {
};
return C;
})();
})(M2 || (M2 = {}));