9 lines
244 B
Plaintext
9 lines
244 B
Plaintext
|
==== 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) {
|
||
|
}
|