TypeScript/tests/baselines/reference/declFileExportAssignmentOfGenericInterface.types

27 lines
1.2 KiB
Text
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/declFileExportAssignmentOfGenericInterface_1.ts ===
import a = require('declFileExportAssignmentOfGenericInterface_0');
>a : any, Symbol(a,Decl(declFileExportAssignmentOfGenericInterface_1.ts,0,0))
2014-08-15 23:33:16 +02:00
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))
2014-08-15 23:33:16 +02:00
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))
2014-08-15 23:33:16 +02:00
=== 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))
2014-08-15 23:33:16 +02:00
a: string;
>a : string, Symbol(a,Decl(declFileExportAssignmentOfGenericInterface_0.ts,1,18))
2014-08-15 23:33:16 +02:00
}
export = Foo;
>Foo : Foo<T>, Symbol(Foo,Decl(declFileExportAssignmentOfGenericInterface_0.ts,0,0))
2014-08-15 23:33:16 +02:00