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

9 lines
244 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== 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) {
}