TypeScript/tests/baselines/reference/declFileIndexSignatures.types

67 lines
2.7 KiB
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/declFileIndexSignatures_0.ts ===
export interface IStringIndexSignature {
2015-04-13 23:01:57 +02:00
>IStringIndexSignature : IStringIndexSignature, Symbol(IStringIndexSignature, Decl(declFileIndexSignatures_0.ts, 0, 0))
2014-08-15 23:33:16 +02:00
[s: string]: string;
2015-04-13 23:01:57 +02:00
>s : string, Symbol(s, Decl(declFileIndexSignatures_0.ts, 2, 5))
2014-08-15 23:33:16 +02:00
}
export interface INumberIndexSignature {
2015-04-13 23:01:57 +02:00
>INumberIndexSignature : INumberIndexSignature, Symbol(INumberIndexSignature, Decl(declFileIndexSignatures_0.ts, 3, 1))
2014-08-15 23:33:16 +02:00
[n: number]: number;
2015-04-13 23:01:57 +02:00
>n : number, Symbol(n, Decl(declFileIndexSignatures_0.ts, 5, 5))
2014-08-15 23:33:16 +02:00
}
export interface IBothIndexSignature {
2015-04-13 23:01:57 +02:00
>IBothIndexSignature : IBothIndexSignature, Symbol(IBothIndexSignature, Decl(declFileIndexSignatures_0.ts, 6, 1))
2014-08-15 23:33:16 +02:00
[s: string]: any;
2015-04-13 23:01:57 +02:00
>s : string, Symbol(s, Decl(declFileIndexSignatures_0.ts, 9, 5))
2014-08-15 23:33:16 +02:00
[n: number]: number;
2015-04-13 23:01:57 +02:00
>n : number, Symbol(n, Decl(declFileIndexSignatures_0.ts, 10, 5))
2014-08-15 23:33:16 +02:00
}
export interface IIndexSignatureWithTypeParameter<T> {
2015-04-13 23:01:57 +02:00
>IIndexSignatureWithTypeParameter : IIndexSignatureWithTypeParameter<T>, Symbol(IIndexSignatureWithTypeParameter, Decl(declFileIndexSignatures_0.ts, 11, 1))
>T : T, Symbol(T, Decl(declFileIndexSignatures_0.ts, 13, 50))
2014-08-15 23:33:16 +02:00
[a: string]: T;
2015-04-13 23:01:57 +02:00
>a : string, Symbol(a, Decl(declFileIndexSignatures_0.ts, 14, 5))
>T : T, Symbol(T, Decl(declFileIndexSignatures_0.ts, 13, 50))
2014-08-15 23:33:16 +02:00
}
=== tests/cases/compiler/declFileIndexSignatures_1.ts ===
interface IGlobalStringIndexSignature {
2015-04-13 23:01:57 +02:00
>IGlobalStringIndexSignature : IGlobalStringIndexSignature, Symbol(IGlobalStringIndexSignature, Decl(declFileIndexSignatures_1.ts, 0, 0))
2014-08-15 23:33:16 +02:00
[s: string]: string;
2015-04-13 23:01:57 +02:00
>s : string, Symbol(s, Decl(declFileIndexSignatures_1.ts, 1, 5))
2014-08-15 23:33:16 +02:00
}
interface IGlobalNumberIndexSignature {
2015-04-13 23:01:57 +02:00
>IGlobalNumberIndexSignature : IGlobalNumberIndexSignature, Symbol(IGlobalNumberIndexSignature, Decl(declFileIndexSignatures_1.ts, 2, 1))
2014-08-15 23:33:16 +02:00
[n: number]: number;
2015-04-13 23:01:57 +02:00
>n : number, Symbol(n, Decl(declFileIndexSignatures_1.ts, 4, 5))
2014-08-15 23:33:16 +02:00
}
interface IGlobalBothIndexSignature {
2015-04-13 23:01:57 +02:00
>IGlobalBothIndexSignature : IGlobalBothIndexSignature, Symbol(IGlobalBothIndexSignature, Decl(declFileIndexSignatures_1.ts, 5, 1))
2014-08-15 23:33:16 +02:00
[s: string]: any;
2015-04-13 23:01:57 +02:00
>s : string, Symbol(s, Decl(declFileIndexSignatures_1.ts, 8, 5))
2014-08-15 23:33:16 +02:00
[n: number]: number;
2015-04-13 23:01:57 +02:00
>n : number, Symbol(n, Decl(declFileIndexSignatures_1.ts, 9, 5))
2014-08-15 23:33:16 +02:00
}
interface IGlobalIndexSignatureWithTypeParameter<T> {
2015-04-13 23:01:57 +02:00
>IGlobalIndexSignatureWithTypeParameter : IGlobalIndexSignatureWithTypeParameter<T>, Symbol(IGlobalIndexSignatureWithTypeParameter, Decl(declFileIndexSignatures_1.ts, 10, 1))
>T : T, Symbol(T, Decl(declFileIndexSignatures_1.ts, 12, 49))
2014-08-15 23:33:16 +02:00
[a: string]: T;
2015-04-13 23:01:57 +02:00
>a : string, Symbol(a, Decl(declFileIndexSignatures_1.ts, 13, 5))
>T : T, Symbol(T, Decl(declFileIndexSignatures_1.ts, 12, 49))
2014-08-15 23:33:16 +02:00
}