TypeScript/tests/baselines/reference/bitwiseNotOperatorInvalidOperations.errors.txt
2014-09-11 16:11:08 -07:00

20 lines
611 B
Plaintext

==== tests/cases/conformance/expressions/unaryOperators/bitwiseNotOperator/bitwiseNotOperatorInvalidOperations.ts (4 errors) ====
// Unary operator ~
var q;
// operand before ~
var a = q~; //expect error
~
!!! error TS1005: ',' expected.
~
!!! error TS1109: Expression expected.
// multiple operands after ~
var mul = ~[1, 2, "abc"], ""; //expect error
~~
!!! error TS1134: Variable declaration expected.
// miss an operand
var b =~;
~
!!! error TS1109: Expression expected.