-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Arthur Ozga
committed
Oct 20, 2016
1 parent
46f7a0f
commit 81383e1
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
...ce/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNumericLiteral.ts
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,42 @@ | ||
type BrandedNum = number & { __numberBrand: any }; | ||
var x : BrandedNum; | ||
|
||
// operator > | ||
x > 0; | ||
x > <number>0; | ||
x > <BrandedNum>0; | ||
|
||
// operator < | ||
x < 0; | ||
x < <number>0; | ||
x < <BrandedNum>0; | ||
|
||
// operator >= | ||
x >= 0; | ||
x >= <number>0; | ||
x >= <BrandedNum>0; | ||
|
||
// operator <= | ||
x <= 0; | ||
x <= <number>0; | ||
x <= <BrandedNum>0; | ||
|
||
// operator == | ||
x == 0; | ||
x == <number>0; | ||
x == <BrandedNum>0; | ||
|
||
// operator != | ||
x != 0; | ||
x != <number>0; | ||
x != <BrandedNum>0; | ||
|
||
// operator === | ||
x === 0; | ||
x === <number>0; | ||
x === <BrandedNum>0; | ||
|
||
// operator !== | ||
x !== 0; | ||
x !== <number>0; | ||
x !== <BrandedNum>0; |