Skip to content

Commit 08a34e1

Browse files
committed
Update baselines
1 parent 1b7bca1 commit 08a34e1

22 files changed

+3516
-7
lines changed

tests/baselines/reference/comparisonOperatorWithIdenticalObjects.errors.txt

Lines changed: 365 additions & 0 deletions
Large diffs are not rendered by default.

tests/baselines/reference/comparisonOperatorWithIdenticalPrimitiveType.errors.txt

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,30 @@
1+
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalPrimitiveType.ts(11,11): error TS2365: Operator '<' cannot be applied to types 'boolean' and 'boolean'.
2+
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalPrimitiveType.ts(13,11): error TS2365: Operator '<' cannot be applied to types 'void' and 'void'.
13
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalPrimitiveType.ts(15,11): error TS18050: The value 'null' cannot be used here.
24
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalPrimitiveType.ts(15,18): error TS18050: The value 'null' cannot be used here.
35
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalPrimitiveType.ts(16,11): error TS18050: The value 'undefined' cannot be used here.
46
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalPrimitiveType.ts(16,23): error TS18050: The value 'undefined' cannot be used here.
7+
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalPrimitiveType.ts(20,11): error TS2365: Operator '>' cannot be applied to types 'boolean' and 'boolean'.
8+
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalPrimitiveType.ts(22,11): error TS2365: Operator '>' cannot be applied to types 'void' and 'void'.
59
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalPrimitiveType.ts(24,11): error TS18050: The value 'null' cannot be used here.
610
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalPrimitiveType.ts(24,18): error TS18050: The value 'null' cannot be used here.
711
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalPrimitiveType.ts(25,11): error TS18050: The value 'undefined' cannot be used here.
812
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalPrimitiveType.ts(25,23): error TS18050: The value 'undefined' cannot be used here.
13+
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalPrimitiveType.ts(29,11): error TS2365: Operator '<=' cannot be applied to types 'boolean' and 'boolean'.
14+
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalPrimitiveType.ts(31,11): error TS2365: Operator '<=' cannot be applied to types 'void' and 'void'.
915
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalPrimitiveType.ts(33,11): error TS18050: The value 'null' cannot be used here.
1016
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalPrimitiveType.ts(33,19): error TS18050: The value 'null' cannot be used here.
1117
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalPrimitiveType.ts(34,11): error TS18050: The value 'undefined' cannot be used here.
1218
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalPrimitiveType.ts(34,24): error TS18050: The value 'undefined' cannot be used here.
19+
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalPrimitiveType.ts(38,11): error TS2365: Operator '>=' cannot be applied to types 'boolean' and 'boolean'.
20+
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalPrimitiveType.ts(40,11): error TS2365: Operator '>=' cannot be applied to types 'void' and 'void'.
1321
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalPrimitiveType.ts(42,11): error TS18050: The value 'null' cannot be used here.
1422
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalPrimitiveType.ts(42,19): error TS18050: The value 'null' cannot be used here.
1523
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalPrimitiveType.ts(43,11): error TS18050: The value 'undefined' cannot be used here.
1624
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalPrimitiveType.ts(43,24): error TS18050: The value 'undefined' cannot be used here.
1725

1826

19-
==== tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalPrimitiveType.ts (16 errors) ====
27+
==== tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalPrimitiveType.ts (24 errors) ====
2028
enum E { a, b, c }
2129

2230
var a: number;
@@ -28,8 +36,12 @@ tests/cases/conformance/expressions/binaryOperators/comparisonOperator/compariso
2836
// operator <
2937
var ra1 = a < a;
3038
var ra2 = b < b;
39+
~~~~~
40+
!!! error TS2365: Operator '<' cannot be applied to types 'boolean' and 'boolean'.
3141
var ra3 = c < c;
3242
var ra4 = d < d;
43+
~~~~~
44+
!!! error TS2365: Operator '<' cannot be applied to types 'void' and 'void'.
3345
var ra5 = e < e;
3446
var ra6 = null < null;
3547
~~~~
@@ -45,8 +57,12 @@ tests/cases/conformance/expressions/binaryOperators/comparisonOperator/compariso
4557
// operator >
4658
var rb1 = a > a;
4759
var rb2 = b > b;
60+
~~~~~
61+
!!! error TS2365: Operator '>' cannot be applied to types 'boolean' and 'boolean'.
4862
var rb3 = c > c;
4963
var rb4 = d > d;
64+
~~~~~
65+
!!! error TS2365: Operator '>' cannot be applied to types 'void' and 'void'.
5066
var rb5 = e > e;
5167
var rb6 = null > null;
5268
~~~~
@@ -62,8 +78,12 @@ tests/cases/conformance/expressions/binaryOperators/comparisonOperator/compariso
6278
// operator <=
6379
var rc1 = a <= a;
6480
var rc2 = b <= b;
81+
~~~~~~
82+
!!! error TS2365: Operator '<=' cannot be applied to types 'boolean' and 'boolean'.
6583
var rc3 = c <= c;
6684
var rc4 = d <= d;
85+
~~~~~~
86+
!!! error TS2365: Operator '<=' cannot be applied to types 'void' and 'void'.
6787
var rc5 = e <= e;
6888
var rc6 = null <= null;
6989
~~~~
@@ -79,8 +99,12 @@ tests/cases/conformance/expressions/binaryOperators/comparisonOperator/compariso
7999
// operator >=
80100
var rd1 = a >= a;
81101
var rd2 = b >= b;
102+
~~~~~~
103+
!!! error TS2365: Operator '>=' cannot be applied to types 'boolean' and 'boolean'.
82104
var rd3 = c >= c;
83105
var rd4 = d >= d;
106+
~~~~~~
107+
!!! error TS2365: Operator '>=' cannot be applied to types 'void' and 'void'.
84108
var rd5 = e >= e;
85109
var rd6 = null >= null;
86110
~~~~
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalTypeParameter.ts(2,14): error TS2365: Operator '<' cannot be applied to types 'T' and 'T'.
2+
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalTypeParameter.ts(3,14): error TS2365: Operator '>' cannot be applied to types 'T' and 'T'.
3+
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalTypeParameter.ts(4,14): error TS2365: Operator '<=' cannot be applied to types 'T' and 'T'.
4+
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalTypeParameter.ts(5,14): error TS2365: Operator '>=' cannot be applied to types 'T' and 'T'.
5+
6+
7+
==== tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalTypeParameter.ts (4 errors) ====
8+
function foo<T>(t: T) {
9+
var r1 = t < t;
10+
~~~~~
11+
!!! error TS2365: Operator '<' cannot be applied to types 'T' and 'T'.
12+
var r2 = t > t;
13+
~~~~~
14+
!!! error TS2365: Operator '>' cannot be applied to types 'T' and 'T'.
15+
var r3 = t <= t;
16+
~~~~~~
17+
!!! error TS2365: Operator '<=' cannot be applied to types 'T' and 'T'.
18+
var r4 = t >= t;
19+
~~~~~~
20+
!!! error TS2365: Operator '>=' cannot be applied to types 'T' and 'T'.
21+
var r5 = t == t;
22+
var r6 = t != t;
23+
var r7 = t === t;
24+
var r8 = t !== t;
25+
}

0 commit comments

Comments
 (0)