2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/conformance/types/primitives/stringLiteral/stringLiteralType.ts(1,8): error TS1110: Type expected.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/conformance/types/primitives/stringLiteral/stringLiteralType.ts (1 errors) ====
|
|
|
|
var x: 'hi';
|
|
|
|
~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1110: Type expected.
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
function f(x: 'hi');
|
|
|
|
function f(x: string);
|
|
|
|
function f(x: any) {
|
|
|
|
}
|