TypeScript/tests/baselines/reference/declFileExportAssignmentOfGenericInterface.types
2015-04-13 14:29:37 -07:00

27 lines
1.3 KiB
Plaintext

=== tests/cases/compiler/declFileExportAssignmentOfGenericInterface_1.ts ===
import a = require('declFileExportAssignmentOfGenericInterface_0');
>a : any, Symbol(a, Decl(declFileExportAssignmentOfGenericInterface_1.ts, 0, 0))
export var x: a<a<string>>;
>x : a<a<string>>, Symbol(x, Decl(declFileExportAssignmentOfGenericInterface_1.ts, 1, 10))
>a : a<T>, Symbol(a, Decl(declFileExportAssignmentOfGenericInterface_1.ts, 0, 0))
>a : a<T>, Symbol(a, Decl(declFileExportAssignmentOfGenericInterface_1.ts, 0, 0))
x.a;
>x.a : string, Symbol(a.a, Decl(declFileExportAssignmentOfGenericInterface_0.ts, 1, 18))
>x : a<a<string>>, Symbol(x, Decl(declFileExportAssignmentOfGenericInterface_1.ts, 1, 10))
>a : string, Symbol(a.a, Decl(declFileExportAssignmentOfGenericInterface_0.ts, 1, 18))
=== tests/cases/compiler/declFileExportAssignmentOfGenericInterface_0.ts ===
interface Foo<T> {
>Foo : Foo<T>, Symbol(Foo, Decl(declFileExportAssignmentOfGenericInterface_0.ts, 0, 0))
>T : T, Symbol(T, Decl(declFileExportAssignmentOfGenericInterface_0.ts, 1, 14))
a: string;
>a : string, Symbol(a, Decl(declFileExportAssignmentOfGenericInterface_0.ts, 1, 18))
}
export = Foo;
>Foo : Foo<T>, Symbol(Foo, Decl(declFileExportAssignmentOfGenericInterface_0.ts, 0, 0))