mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
25 lines
420 B
TypeScript
25 lines
420 B
TypeScript
//// [tests/cases/compiler/classImplementsImportedInterface.ts] ////
|
|
|
|
//// [classImplementsImportedInterface.ts]
|
|
namespace M1 {
|
|
export interface I {
|
|
foo();
|
|
}
|
|
}
|
|
|
|
namespace M2 {
|
|
import T = M1.I;
|
|
class C implements T {
|
|
foo() {}
|
|
}
|
|
}
|
|
|
|
//// [classImplementsImportedInterface.js]
|
|
"use strict";
|
|
var M2;
|
|
(function (M2) {
|
|
class C {
|
|
foo() { }
|
|
}
|
|
})(M2 || (M2 = {}));
|