TypeScript/tests/baselines/reference/stringLiteralType.errors.txt

12 lines
374 B
Plaintext
Raw Normal View History

tests/cases/conformance/types/primitives/stringLiteral/stringLiteralType.ts(1,8): error TS1110: Type expected.
2014-07-13 01:04:16 +02:00
==== tests/cases/conformance/types/primitives/stringLiteral/stringLiteralType.ts (1 errors) ====
var x: 'hi';
~~~~
!!! error TS1110: Type expected.
2014-07-13 01:04:16 +02:00
function f(x: 'hi');
function f(x: string);
function f(x: any) {
}