2014-08-28 01:58:31 +02:00
|
|
|
=== tests/cases/compiler/classImplementsImportedInterface.ts ===
|
|
|
|
module M1 {
|
2015-04-13 23:01:57 +02:00
|
|
|
>M1 : any, Symbol(M1, Decl(classImplementsImportedInterface.ts, 0, 0))
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
export interface I {
|
2015-04-13 23:01:57 +02:00
|
|
|
>I : I, Symbol(I, Decl(classImplementsImportedInterface.ts, 0, 11))
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
foo();
|
2015-04-13 23:01:57 +02:00
|
|
|
>foo : () => any, Symbol(foo, Decl(classImplementsImportedInterface.ts, 1, 24))
|
2014-08-28 01:58:31 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module M2 {
|
2015-04-13 23:01:57 +02:00
|
|
|
>M2 : typeof M2, Symbol(M2, Decl(classImplementsImportedInterface.ts, 4, 1))
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
import T = M1.I;
|
2015-04-13 23:01:57 +02:00
|
|
|
>T : any, Symbol(T, Decl(classImplementsImportedInterface.ts, 6, 11))
|
|
|
|
>M1 : any, Symbol(M1, Decl(classImplementsImportedInterface.ts, 0, 0))
|
|
|
|
>I : T, Symbol(T, Decl(classImplementsImportedInterface.ts, 0, 11))
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
class C implements T {
|
2015-04-13 23:01:57 +02:00
|
|
|
>C : C, Symbol(C, Decl(classImplementsImportedInterface.ts, 7, 20))
|
|
|
|
>T : T, Symbol(T, Decl(classImplementsImportedInterface.ts, 6, 11))
|
2014-08-28 01:58:31 +02:00
|
|
|
|
|
|
|
foo() {}
|
2015-04-13 23:01:57 +02:00
|
|
|
>foo : () => void, Symbol(foo, Decl(classImplementsImportedInterface.ts, 8, 26))
|
2014-08-28 01:58:31 +02:00
|
|
|
}
|
|
|
|
}
|