12 lines
No EOL
374 B
Text
12 lines
No EOL
374 B
Text
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) {
|
|
} |