2014-09-06 03:42:05 +02:00
|
|
|
=== tests/cases/conformance/types/objectTypeLiteral/callSignatures/specializedSignatureWithOptional.ts ===
|
|
|
|
declare function f(x?: "hi"): void;
|
2015-04-13 22:54:22 +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))
|
2014-09-06 03:42:05 +02:00
|
|
|
|
|
|
|
declare function f(x?: string): void;
|
2015-04-13 22:54:22 +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))
|
2014-09-06 03:42:05 +02:00
|
|
|
|