12 lines
374 B
Plaintext
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) {
|
|
} |