TypeScript/tests/baselines/reference/hidingCallSignatures.types

64 lines
1.6 KiB
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/hidingCallSignatures.ts ===
interface C {
2015-04-13 23:01:57 +02:00
>C : C, Symbol(C, Decl(hidingCallSignatures.ts, 0, 0))
2014-08-15 23:33:16 +02:00
new (a: string): string;
2015-04-13 23:01:57 +02:00
>a : string, Symbol(a, Decl(hidingCallSignatures.ts, 1, 9))
2014-08-15 23:33:16 +02:00
}
interface D extends C {
2015-04-13 23:01:57 +02:00
>D : D, Symbol(D, Decl(hidingCallSignatures.ts, 2, 1))
>C : C, Symbol(C, Decl(hidingCallSignatures.ts, 0, 0))
2014-08-15 23:33:16 +02:00
(a: string): number; // Should be ok
2015-04-13 23:01:57 +02:00
>a : string, Symbol(a, Decl(hidingCallSignatures.ts, 5, 5))
2014-08-15 23:33:16 +02:00
}
interface E {
2015-04-13 23:01:57 +02:00
>E : E, Symbol(E, Decl(hidingCallSignatures.ts, 6, 1))
2014-08-15 23:33:16 +02:00
(a: string): {};
2015-04-13 23:01:57 +02:00
>a : string, Symbol(a, Decl(hidingCallSignatures.ts, 9, 5))
2014-08-15 23:33:16 +02:00
}
interface F extends E {
2015-04-13 23:01:57 +02:00
>F : F, Symbol(F, Decl(hidingCallSignatures.ts, 10, 1))
>E : E, Symbol(E, Decl(hidingCallSignatures.ts, 6, 1))
2014-08-15 23:33:16 +02:00
(a: string): string;
2015-04-13 23:01:57 +02:00
>a : string, Symbol(a, Decl(hidingCallSignatures.ts, 13, 5))
2014-08-15 23:33:16 +02:00
}
var d: D;
2015-04-13 23:01:57 +02:00
>d : D, Symbol(d, Decl(hidingCallSignatures.ts, 16, 3))
>D : D, Symbol(D, Decl(hidingCallSignatures.ts, 2, 1))
2014-08-15 23:33:16 +02:00
d(""); // number
>d("") : number
2015-04-13 23:01:57 +02:00
>d : D, Symbol(d, Decl(hidingCallSignatures.ts, 16, 3))
2015-04-13 21:36:11 +02:00
>"" : string
2014-08-15 23:33:16 +02:00
new d(""); // should be string
>new d("") : string
2015-04-13 23:01:57 +02:00
>d : D, Symbol(d, Decl(hidingCallSignatures.ts, 16, 3))
2015-04-13 21:36:11 +02:00
>"" : string
2014-08-15 23:33:16 +02:00
var f: F;
2015-04-13 23:01:57 +02:00
>f : F, Symbol(f, Decl(hidingCallSignatures.ts, 20, 3))
>F : F, Symbol(F, Decl(hidingCallSignatures.ts, 10, 1))
2014-08-15 23:33:16 +02:00
f(""); // string
>f("") : string
2015-04-13 23:01:57 +02:00
>f : F, Symbol(f, Decl(hidingCallSignatures.ts, 20, 3))
2015-04-13 21:36:11 +02:00
>"" : string
2014-08-15 23:33:16 +02:00
var e: E;
2015-04-13 23:01:57 +02:00
>e : E, Symbol(e, Decl(hidingCallSignatures.ts, 23, 3))
>E : E, Symbol(E, Decl(hidingCallSignatures.ts, 6, 1))
2014-08-15 23:33:16 +02:00
e(""); // {}
>e("") : {}
2015-04-13 23:01:57 +02:00
>e : E, Symbol(e, Decl(hidingCallSignatures.ts, 23, 3))
2015-04-13 21:36:11 +02:00
>"" : string
2014-08-15 23:33:16 +02:00