TypeScript/tests/baselines/reference/specializedSignatureWithOptional.types

10 lines
650 B
Plaintext
Raw Normal View History

=== tests/cases/conformance/types/objectTypeLiteral/callSignatures/specializedSignatureWithOptional.ts ===
declare function f(x?: "hi"): void;
2015-04-13 23:01:57 +02:00
>f : { (x?: "hi"): void; (x?: string): void; }, Symbol(f, Decl(specializedSignatureWithOptional.ts, 0, 0), Decl(specializedSignatureWithOptional.ts, 0, 35))
>x : "hi", Symbol(x, Decl(specializedSignatureWithOptional.ts, 0, 19))
declare function f(x?: string): void;
2015-04-13 23:01:57 +02:00
>f : { (x?: "hi"): void; (x?: string): void; }, Symbol(f, Decl(specializedSignatureWithOptional.ts, 0, 0), Decl(specializedSignatureWithOptional.ts, 0, 35))
>x : string, Symbol(x, Decl(specializedSignatureWithOptional.ts, 1, 19))