TypeScript/tests/baselines/reference/classImplementsImportedInterface.types

29 lines
364 B
Plaintext
Raw Normal View History

2014-08-28 01:58:31 +02:00
=== tests/cases/compiler/classImplementsImportedInterface.ts ===
module M1 {
2014-08-28 21:40:58 +02:00
>M1 : unknown
2014-08-28 01:58:31 +02:00
export interface I {
>I : I
foo();
>foo : () => any
}
}
module M2 {
2014-08-28 21:40:58 +02:00
>M2 : typeof M2
2014-08-28 01:58:31 +02:00
import T = M1.I;
2014-08-28 21:40:58 +02:00
>T : unknown
>M1 : unknown
2014-08-28 01:58:31 +02:00
>I : T
class C implements T {
>C : C
>T : T
foo() {}
>foo : () => void
}
}