2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithAnyAndNumber.ts ===
|
|
|
|
var a: any;
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var b: number;
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
// operator *
|
|
|
|
var ra1 = a * a;
|
2015-04-13 23:01:57 +02:00
|
|
|
>ra1 : number, Symbol(ra1, Decl(arithmeticOperatorWithAnyAndNumber.ts, 4, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>a * a : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var ra2 = a * b;
|
2015-04-13 23:01:57 +02:00
|
|
|
>ra2 : number, Symbol(ra2, Decl(arithmeticOperatorWithAnyAndNumber.ts, 5, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>a * b : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var ra3 = a * 0;
|
2015-04-13 23:01:57 +02:00
|
|
|
>ra3 : number, Symbol(ra3, Decl(arithmeticOperatorWithAnyAndNumber.ts, 6, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>a * 0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var ra4 = 0 * a;
|
2015-04-13 23:01:57 +02:00
|
|
|
>ra4 : number, Symbol(ra4, Decl(arithmeticOperatorWithAnyAndNumber.ts, 7, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>0 * a : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var ra5 = 0 * 0;
|
2015-04-13 23:01:57 +02:00
|
|
|
>ra5 : number, Symbol(ra5, Decl(arithmeticOperatorWithAnyAndNumber.ts, 8, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>0 * 0 : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
|
|
|
>0 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var ra6 = b * 0;
|
2015-04-13 23:01:57 +02:00
|
|
|
>ra6 : number, Symbol(ra6, Decl(arithmeticOperatorWithAnyAndNumber.ts, 9, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>b * 0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var ra7 = 0 * b;
|
2015-04-13 23:01:57 +02:00
|
|
|
>ra7 : number, Symbol(ra7, Decl(arithmeticOperatorWithAnyAndNumber.ts, 10, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>0 * b : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var ra8 = b * b;
|
2015-04-13 23:01:57 +02:00
|
|
|
>ra8 : number, Symbol(ra8, Decl(arithmeticOperatorWithAnyAndNumber.ts, 11, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>b * b : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
// operator /
|
|
|
|
var rb1 = a / a;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rb1 : number, Symbol(rb1, Decl(arithmeticOperatorWithAnyAndNumber.ts, 14, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>a / a : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rb2 = a / b;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rb2 : number, Symbol(rb2, Decl(arithmeticOperatorWithAnyAndNumber.ts, 15, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>a / b : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rb3 = a / 0;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rb3 : number, Symbol(rb3, Decl(arithmeticOperatorWithAnyAndNumber.ts, 16, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>a / 0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rb4 = 0 / a;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rb4 : number, Symbol(rb4, Decl(arithmeticOperatorWithAnyAndNumber.ts, 17, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>0 / a : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rb5 = 0 / 0;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rb5 : number, Symbol(rb5, Decl(arithmeticOperatorWithAnyAndNumber.ts, 18, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>0 / 0 : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
|
|
|
>0 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rb6 = b / 0;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rb6 : number, Symbol(rb6, Decl(arithmeticOperatorWithAnyAndNumber.ts, 19, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>b / 0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rb7 = 0 / b;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rb7 : number, Symbol(rb7, Decl(arithmeticOperatorWithAnyAndNumber.ts, 20, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>0 / b : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rb8 = b / b;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rb8 : number, Symbol(rb8, Decl(arithmeticOperatorWithAnyAndNumber.ts, 21, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>b / b : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
// operator %
|
|
|
|
var rc1 = a % a;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rc1 : number, Symbol(rc1, Decl(arithmeticOperatorWithAnyAndNumber.ts, 24, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>a % a : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rc2 = a % b;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rc2 : number, Symbol(rc2, Decl(arithmeticOperatorWithAnyAndNumber.ts, 25, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>a % b : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rc3 = a % 0;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rc3 : number, Symbol(rc3, Decl(arithmeticOperatorWithAnyAndNumber.ts, 26, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>a % 0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rc4 = 0 % a;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rc4 : number, Symbol(rc4, Decl(arithmeticOperatorWithAnyAndNumber.ts, 27, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>0 % a : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rc5 = 0 % 0;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rc5 : number, Symbol(rc5, Decl(arithmeticOperatorWithAnyAndNumber.ts, 28, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>0 % 0 : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
|
|
|
>0 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rc6 = b % 0;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rc6 : number, Symbol(rc6, Decl(arithmeticOperatorWithAnyAndNumber.ts, 29, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>b % 0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rc7 = 0 % b;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rc7 : number, Symbol(rc7, Decl(arithmeticOperatorWithAnyAndNumber.ts, 30, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>0 % b : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rc8 = b % b;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rc8 : number, Symbol(rc8, Decl(arithmeticOperatorWithAnyAndNumber.ts, 31, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>b % b : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
// operator -
|
|
|
|
var rd1 = a - a;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rd1 : number, Symbol(rd1, Decl(arithmeticOperatorWithAnyAndNumber.ts, 34, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>a - a : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rd2 = a - b;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rd2 : number, Symbol(rd2, Decl(arithmeticOperatorWithAnyAndNumber.ts, 35, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>a - b : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rd3 = a - 0;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rd3 : number, Symbol(rd3, Decl(arithmeticOperatorWithAnyAndNumber.ts, 36, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>a - 0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rd4 = 0 - a;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rd4 : number, Symbol(rd4, Decl(arithmeticOperatorWithAnyAndNumber.ts, 37, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>0 - a : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rd5 = 0 - 0;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rd5 : number, Symbol(rd5, Decl(arithmeticOperatorWithAnyAndNumber.ts, 38, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>0 - 0 : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
|
|
|
>0 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rd6 = b - 0;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rd6 : number, Symbol(rd6, Decl(arithmeticOperatorWithAnyAndNumber.ts, 39, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>b - 0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rd7 = 0 - b;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rd7 : number, Symbol(rd7, Decl(arithmeticOperatorWithAnyAndNumber.ts, 40, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>0 - b : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rd8 = b - b;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rd8 : number, Symbol(rd8, Decl(arithmeticOperatorWithAnyAndNumber.ts, 41, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>b - b : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
// operator <<
|
|
|
|
var re1 = a << a;
|
2015-04-13 23:01:57 +02:00
|
|
|
>re1 : number, Symbol(re1, Decl(arithmeticOperatorWithAnyAndNumber.ts, 44, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>a << a : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var re2 = a << b;
|
2015-04-13 23:01:57 +02:00
|
|
|
>re2 : number, Symbol(re2, Decl(arithmeticOperatorWithAnyAndNumber.ts, 45, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>a << b : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var re3 = a << 0;
|
2015-04-13 23:01:57 +02:00
|
|
|
>re3 : number, Symbol(re3, Decl(arithmeticOperatorWithAnyAndNumber.ts, 46, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>a << 0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var re4 = 0 << a;
|
2015-04-13 23:01:57 +02:00
|
|
|
>re4 : number, Symbol(re4, Decl(arithmeticOperatorWithAnyAndNumber.ts, 47, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>0 << a : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var re5 = 0 << 0;
|
2015-04-13 23:01:57 +02:00
|
|
|
>re5 : number, Symbol(re5, Decl(arithmeticOperatorWithAnyAndNumber.ts, 48, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>0 << 0 : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
|
|
|
>0 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var re6 = b << 0;
|
2015-04-13 23:01:57 +02:00
|
|
|
>re6 : number, Symbol(re6, Decl(arithmeticOperatorWithAnyAndNumber.ts, 49, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>b << 0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var re7 = 0 << b;
|
2015-04-13 23:01:57 +02:00
|
|
|
>re7 : number, Symbol(re7, Decl(arithmeticOperatorWithAnyAndNumber.ts, 50, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>0 << b : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var re8 = b << b;
|
2015-04-13 23:01:57 +02:00
|
|
|
>re8 : number, Symbol(re8, Decl(arithmeticOperatorWithAnyAndNumber.ts, 51, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>b << b : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
// operator >>
|
|
|
|
var rf1 = a >> a;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rf1 : number, Symbol(rf1, Decl(arithmeticOperatorWithAnyAndNumber.ts, 54, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>a >> a : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rf2 = a >> b;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rf2 : number, Symbol(rf2, Decl(arithmeticOperatorWithAnyAndNumber.ts, 55, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>a >> b : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rf3 = a >> 0;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rf3 : number, Symbol(rf3, Decl(arithmeticOperatorWithAnyAndNumber.ts, 56, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>a >> 0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rf4 = 0 >> a;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rf4 : number, Symbol(rf4, Decl(arithmeticOperatorWithAnyAndNumber.ts, 57, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>0 >> a : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rf5 = 0 >> 0;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rf5 : number, Symbol(rf5, Decl(arithmeticOperatorWithAnyAndNumber.ts, 58, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>0 >> 0 : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
|
|
|
>0 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rf6 = b >> 0;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rf6 : number, Symbol(rf6, Decl(arithmeticOperatorWithAnyAndNumber.ts, 59, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>b >> 0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rf7 = 0 >> b;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rf7 : number, Symbol(rf7, Decl(arithmeticOperatorWithAnyAndNumber.ts, 60, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>0 >> b : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rf8 = b >> b;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rf8 : number, Symbol(rf8, Decl(arithmeticOperatorWithAnyAndNumber.ts, 61, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>b >> b : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
// operator >>>
|
|
|
|
var rg1 = a >>> a;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rg1 : number, Symbol(rg1, Decl(arithmeticOperatorWithAnyAndNumber.ts, 64, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>a >>> a : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rg2 = a >>> b;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rg2 : number, Symbol(rg2, Decl(arithmeticOperatorWithAnyAndNumber.ts, 65, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>a >>> b : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rg3 = a >>> 0;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rg3 : number, Symbol(rg3, Decl(arithmeticOperatorWithAnyAndNumber.ts, 66, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>a >>> 0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rg4 = 0 >>> a;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rg4 : number, Symbol(rg4, Decl(arithmeticOperatorWithAnyAndNumber.ts, 67, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>0 >>> a : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rg5 = 0 >>> 0;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rg5 : number, Symbol(rg5, Decl(arithmeticOperatorWithAnyAndNumber.ts, 68, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>0 >>> 0 : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
|
|
|
>0 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rg6 = b >>> 0;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rg6 : number, Symbol(rg6, Decl(arithmeticOperatorWithAnyAndNumber.ts, 69, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>b >>> 0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rg7 = 0 >>> b;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rg7 : number, Symbol(rg7, Decl(arithmeticOperatorWithAnyAndNumber.ts, 70, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>0 >>> b : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rg8 = b >>> b;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rg8 : number, Symbol(rg8, Decl(arithmeticOperatorWithAnyAndNumber.ts, 71, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>b >>> b : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
// operator &
|
|
|
|
var rh1 = a & a;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rh1 : number, Symbol(rh1, Decl(arithmeticOperatorWithAnyAndNumber.ts, 74, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>a & a : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rh2 = a & b;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rh2 : number, Symbol(rh2, Decl(arithmeticOperatorWithAnyAndNumber.ts, 75, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>a & b : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rh3 = a & 0;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rh3 : number, Symbol(rh3, Decl(arithmeticOperatorWithAnyAndNumber.ts, 76, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>a & 0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rh4 = 0 & a;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rh4 : number, Symbol(rh4, Decl(arithmeticOperatorWithAnyAndNumber.ts, 77, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>0 & a : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rh5 = 0 & 0;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rh5 : number, Symbol(rh5, Decl(arithmeticOperatorWithAnyAndNumber.ts, 78, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>0 & 0 : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
|
|
|
>0 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rh6 = b & 0;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rh6 : number, Symbol(rh6, Decl(arithmeticOperatorWithAnyAndNumber.ts, 79, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>b & 0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rh7 = 0 & b;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rh7 : number, Symbol(rh7, Decl(arithmeticOperatorWithAnyAndNumber.ts, 80, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>0 & b : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rh8 = b & b;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rh8 : number, Symbol(rh8, Decl(arithmeticOperatorWithAnyAndNumber.ts, 81, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>b & b : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
// operator ^
|
|
|
|
var ri1 = a ^ a;
|
2015-04-13 23:01:57 +02:00
|
|
|
>ri1 : number, Symbol(ri1, Decl(arithmeticOperatorWithAnyAndNumber.ts, 84, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>a ^ a : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var ri2 = a ^ b;
|
2015-04-13 23:01:57 +02:00
|
|
|
>ri2 : number, Symbol(ri2, Decl(arithmeticOperatorWithAnyAndNumber.ts, 85, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>a ^ b : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var ri3 = a ^ 0;
|
2015-04-13 23:01:57 +02:00
|
|
|
>ri3 : number, Symbol(ri3, Decl(arithmeticOperatorWithAnyAndNumber.ts, 86, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>a ^ 0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var ri4 = 0 ^ a;
|
2015-04-13 23:01:57 +02:00
|
|
|
>ri4 : number, Symbol(ri4, Decl(arithmeticOperatorWithAnyAndNumber.ts, 87, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>0 ^ a : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var ri5 = 0 ^ 0;
|
2015-04-13 23:01:57 +02:00
|
|
|
>ri5 : number, Symbol(ri5, Decl(arithmeticOperatorWithAnyAndNumber.ts, 88, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>0 ^ 0 : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
|
|
|
>0 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var ri6 = b ^ 0;
|
2015-04-13 23:01:57 +02:00
|
|
|
>ri6 : number, Symbol(ri6, Decl(arithmeticOperatorWithAnyAndNumber.ts, 89, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>b ^ 0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var ri7 = 0 ^ b;
|
2015-04-13 23:01:57 +02:00
|
|
|
>ri7 : number, Symbol(ri7, Decl(arithmeticOperatorWithAnyAndNumber.ts, 90, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>0 ^ b : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var ri8 = b ^ b;
|
2015-04-13 23:01:57 +02:00
|
|
|
>ri8 : number, Symbol(ri8, Decl(arithmeticOperatorWithAnyAndNumber.ts, 91, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>b ^ b : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
// operator |
|
|
|
|
var rj1 = a | a;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rj1 : number, Symbol(rj1, Decl(arithmeticOperatorWithAnyAndNumber.ts, 94, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>a | a : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rj2 = a | b;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rj2 : number, Symbol(rj2, Decl(arithmeticOperatorWithAnyAndNumber.ts, 95, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>a | b : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rj3 = a | 0;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rj3 : number, Symbol(rj3, Decl(arithmeticOperatorWithAnyAndNumber.ts, 96, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>a | 0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rj4 = 0 | a;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rj4 : number, Symbol(rj4, Decl(arithmeticOperatorWithAnyAndNumber.ts, 97, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>0 | a : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rj5 = 0 | 0;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rj5 : number, Symbol(rj5, Decl(arithmeticOperatorWithAnyAndNumber.ts, 98, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>0 | 0 : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
|
|
|
>0 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rj6 = b | 0;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rj6 : number, Symbol(rj6, Decl(arithmeticOperatorWithAnyAndNumber.ts, 99, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>b | 0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rj7 = 0 | b;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rj7 : number, Symbol(rj7, Decl(arithmeticOperatorWithAnyAndNumber.ts, 100, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>0 | b : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var rj8 = b | b;
|
2015-04-13 23:01:57 +02:00
|
|
|
>rj8 : number, Symbol(rj8, Decl(arithmeticOperatorWithAnyAndNumber.ts, 101, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>b | b : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
|
|
|
>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|