-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1b7bca1
commit 08a34e1
Showing
22 changed files
with
3,516 additions
and
7 deletions.
There are no files selected for viewing
365 changes: 365 additions & 0 deletions
365
tests/baselines/reference/comparisonOperatorWithIdenticalObjects.errors.txt
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
tests/baselines/reference/comparisonOperatorWithIdenticalTypeParameter.errors.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalTypeParameter.ts(2,14): error TS2365: Operator '<' cannot be applied to types 'T' and 'T'. | ||
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalTypeParameter.ts(3,14): error TS2365: Operator '>' cannot be applied to types 'T' and 'T'. | ||
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalTypeParameter.ts(4,14): error TS2365: Operator '<=' cannot be applied to types 'T' and 'T'. | ||
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalTypeParameter.ts(5,14): error TS2365: Operator '>=' cannot be applied to types 'T' and 'T'. | ||
|
||
|
||
==== tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalTypeParameter.ts (4 errors) ==== | ||
function foo<T>(t: T) { | ||
var r1 = t < t; | ||
~~~~~ | ||
!!! error TS2365: Operator '<' cannot be applied to types 'T' and 'T'. | ||
var r2 = t > t; | ||
~~~~~ | ||
!!! error TS2365: Operator '>' cannot be applied to types 'T' and 'T'. | ||
var r3 = t <= t; | ||
~~~~~~ | ||
!!! error TS2365: Operator '<=' cannot be applied to types 'T' and 'T'. | ||
var r4 = t >= t; | ||
~~~~~~ | ||
!!! error TS2365: Operator '>=' cannot be applied to types 'T' and 'T'. | ||
var r5 = t == t; | ||
var r6 = t != t; | ||
var r7 = t === t; | ||
var r8 = t !== t; | ||
} |
Oops, something went wrong.