9 lines
No EOL
244 B
Text
9 lines
No EOL
244 B
Text
==== tests/cases/conformance/types/primitives/stringLiteral/stringLiteralType.ts (1 errors) ====
|
|
var x: 'hi';
|
|
~~~~
|
|
!!! Type expected.
|
|
|
|
function f(x: 'hi');
|
|
function f(x: string);
|
|
function f(x: any) {
|
|
} |