TypeScript/tests/baselines/reference/stringLiteralType.errors.txt
2014-09-12 13:35:07 -07:00

12 lines
374 B
Plaintext

tests/cases/conformance/types/primitives/stringLiteral/stringLiteralType.ts(1,8): error TS1110: Type expected.
==== tests/cases/conformance/types/primitives/stringLiteral/stringLiteralType.ts (1 errors) ====
var x: 'hi';
~~~~
!!! error TS1110: Type expected.
function f(x: 'hi');
function f(x: string);
function f(x: any) {
}