TypeScript/tests/baselines/reference/classImplementsImportedInterface.types

29 lines
352 B
Plaintext
Raw Normal View History

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