mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 11:24:49 -05:00
Accepting new baselines
This commit is contained in:
@@ -1,19 +1,13 @@
|
||||
tests/cases/conformance/expressions/unaryOperators/logicalNotOperator/logicalNotOperatorInvalidOperations.ts(5,17): error TS1005: ',' expected.
|
||||
tests/cases/conformance/expressions/unaryOperators/logicalNotOperator/logicalNotOperatorInvalidOperations.ts(5,18): error TS1109: Expression expected.
|
||||
tests/cases/conformance/expressions/unaryOperators/logicalNotOperator/logicalNotOperatorInvalidOperations.ts(8,16): error TS2365: Operator '+' cannot be applied to types 'boolean' and 'number'.
|
||||
tests/cases/conformance/expressions/unaryOperators/logicalNotOperator/logicalNotOperatorInvalidOperations.ts(11,16): error TS1109: Expression expected.
|
||||
|
||||
|
||||
==== tests/cases/conformance/expressions/unaryOperators/logicalNotOperator/logicalNotOperatorInvalidOperations.ts (4 errors) ====
|
||||
==== tests/cases/conformance/expressions/unaryOperators/logicalNotOperator/logicalNotOperatorInvalidOperations.ts (2 errors) ====
|
||||
// Unary operator !
|
||||
var b: number;
|
||||
|
||||
// operand before !
|
||||
var BOOLEAN1 = b!; //expect error
|
||||
~
|
||||
!!! error TS1005: ',' expected.
|
||||
~
|
||||
!!! error TS1109: Expression expected.
|
||||
|
||||
// miss parentheses
|
||||
var BOOLEAN2 = !b + b;
|
||||
|
||||
@@ -15,8 +15,7 @@ var BOOLEAN3 =!;
|
||||
// Unary operator !
|
||||
var b;
|
||||
// operand before !
|
||||
var BOOLEAN1 = b;
|
||||
!; //expect error
|
||||
var BOOLEAN1 = b; //expect error
|
||||
// miss parentheses
|
||||
var BOOLEAN2 = !b + b;
|
||||
// miss an operand
|
||||
|
||||
Reference in New Issue
Block a user