2014-09-12 22:35:07 +02:00
|
|
|
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
|
|
|
|
~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1005: ',' expected.
|
2014-07-13 01:04:16 +02:00
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1109: Expression expected.
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
// miss an operand
|
|
|
|
var ANY1 = typeof ;
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1109: Expression expected.
|