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

19 lines
909 B
Plaintext
Raw Normal View History

tests/cases/conformance/expressions/unaryOperators/typeofOperator/typeofOperatorInvalidOperations.ts(4,15): error TS1005: ',' expected.
tests/cases/conformance/expressions/unaryOperators/typeofOperator/typeofOperatorInvalidOperations.ts(4,22): error TS1109: Expression expected.
tests/cases/conformance/expressions/unaryOperators/typeofOperator/typeofOperatorInvalidOperations.ts(7,19): error TS1109: Expression expected.
2014-07-13 01:04:16 +02:00
==== tests/cases/conformance/expressions/unaryOperators/typeofOperator/typeofOperatorInvalidOperations.ts (3 errors) ====
// Unary operator typeof
// opreand before typeof
var ANY = ANY typeof ; //expect error
~~~~~~
!!! error TS1005: ',' expected.
2014-07-13 01:04:16 +02:00
~
!!! error TS1109: Expression expected.
2014-07-13 01:04:16 +02:00
// miss an operand
var ANY1 = typeof ;
~
!!! error TS1109: Expression expected.