52 lines
532 B
Text
52 lines
532 B
Text
=== tests/cases/compiler/clinterfaces.ts ===
|
|
module M {
|
|
>M : typeof M
|
|
|
|
class C { }
|
|
>C : C
|
|
|
|
interface C { }
|
|
>C : C
|
|
|
|
interface D { }
|
|
>D : D
|
|
|
|
class D { }
|
|
>D : D
|
|
}
|
|
|
|
interface Foo<T> {
|
|
>Foo : Foo<T>
|
|
>T : T
|
|
|
|
a: string;
|
|
>a : string
|
|
}
|
|
|
|
class Foo<T>{
|
|
>Foo : Foo<T>
|
|
>T : T
|
|
|
|
b: number;
|
|
>b : number
|
|
}
|
|
|
|
class Bar<T>{
|
|
>Bar : Bar<T>
|
|
>T : T
|
|
|
|
b: number;
|
|
>b : number
|
|
}
|
|
|
|
interface Bar<T> {
|
|
>Bar : Bar<T>
|
|
>T : T
|
|
|
|
a: string;
|
|
>a : string
|
|
}
|
|
|
|
export = Foo;
|
|
>Foo : Foo<T>
|
|
|