TypeScript/tests/baselines/reference/stringLiteralType.types
2015-10-02 15:23:53 -07:00

17 lines
353 B
Plaintext

=== tests/cases/conformance/types/primitives/stringLiteral/stringLiteralType.ts ===
var x: 'hi';
>x : "hi"
function f(x: 'hi');
>f : { (x: "hi"): any; (x: string): any; }
>x : "hi"
function f(x: string);
>f : { (x: "hi"): any; (x: string): any; }
>x : string
function f(x: any) {
>f : { (x: "hi"): any; (x: string): any; }
>x : any
}