TypeScript/tests/baselines/reference/comparisonOperatorWithIdenticalPrimitiveType.types

368 lines
16 KiB
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalPrimitiveType.ts ===
enum E { a, b, c }
2015-04-13 23:01:57 +02:00
>E : E, Symbol(E, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 0, 0))
>a : E, Symbol(E.a, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 0, 8))
>b : E, Symbol(E.b, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 0, 11))
>c : E, Symbol(E.c, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 0, 14))
2014-08-15 23:33:16 +02:00
var a: number;
2015-04-13 23:01:57 +02:00
>a : number, Symbol(a, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 2, 3))
2014-08-15 23:33:16 +02:00
var b: boolean;
2015-04-13 23:01:57 +02:00
>b : boolean, Symbol(b, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 3, 3))
2014-08-15 23:33:16 +02:00
var c: string;
2015-04-13 23:01:57 +02:00
>c : string, Symbol(c, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 4, 3))
2014-08-15 23:33:16 +02:00
var d: void;
2015-04-13 23:01:57 +02:00
>d : void, Symbol(d, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 5, 3))
2014-08-15 23:33:16 +02:00
var e: E;
2015-04-13 23:01:57 +02:00
>e : E, Symbol(e, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 6, 3))
>E : E, Symbol(E, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 0, 0))
2014-08-15 23:33:16 +02:00
// operator <
var ra1 = a < a;
2015-04-13 23:01:57 +02:00
>ra1 : boolean, Symbol(ra1, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 9, 3))
2014-08-15 23:33:16 +02:00
>a < a : boolean
2015-04-13 23:01:57 +02:00
>a : number, Symbol(a, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 2, 3))
>a : number, Symbol(a, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 2, 3))
2014-08-15 23:33:16 +02:00
var ra2 = b < b;
2015-04-13 23:01:57 +02:00
>ra2 : boolean, Symbol(ra2, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 10, 3))
2014-08-15 23:33:16 +02:00
>b < b : boolean
2015-04-13 23:01:57 +02:00
>b : boolean, Symbol(b, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 3, 3))
>b : boolean, Symbol(b, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 3, 3))
2014-08-15 23:33:16 +02:00
var ra3 = c < c;
2015-04-13 23:01:57 +02:00
>ra3 : boolean, Symbol(ra3, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 11, 3))
2014-08-15 23:33:16 +02:00
>c < c : boolean
2015-04-13 23:01:57 +02:00
>c : string, Symbol(c, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 4, 3))
>c : string, Symbol(c, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 4, 3))
2014-08-15 23:33:16 +02:00
var ra4 = d < d;
2015-04-13 23:01:57 +02:00
>ra4 : boolean, Symbol(ra4, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 12, 3))
2014-08-15 23:33:16 +02:00
>d < d : boolean
2015-04-13 23:01:57 +02:00
>d : void, Symbol(d, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 5, 3))
>d : void, Symbol(d, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 5, 3))
2014-08-15 23:33:16 +02:00
var ra5 = e < e;
2015-04-13 23:01:57 +02:00
>ra5 : boolean, Symbol(ra5, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 13, 3))
2014-08-15 23:33:16 +02:00
>e < e : boolean
2015-04-13 23:01:57 +02:00
>e : E, Symbol(e, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 6, 3))
>e : E, Symbol(e, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 6, 3))
2014-08-15 23:33:16 +02:00
var ra6 = null < null;
2015-04-13 23:01:57 +02:00
>ra6 : boolean, Symbol(ra6, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 14, 3))
2014-08-15 23:33:16 +02:00
>null < null : boolean
2015-04-13 21:36:11 +02:00
>null : null
>null : null
2014-08-15 23:33:16 +02:00
var ra7 = undefined < undefined;
2015-04-13 23:01:57 +02:00
>ra7 : boolean, Symbol(ra7, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 15, 3))
2014-08-15 23:33:16 +02:00
>undefined < undefined : boolean
>undefined : undefined, Symbol(undefined)
>undefined : undefined, Symbol(undefined)
2014-08-15 23:33:16 +02:00
// operator >
var rb1 = a > a;
2015-04-13 23:01:57 +02:00
>rb1 : boolean, Symbol(rb1, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 18, 3))
2014-08-15 23:33:16 +02:00
>a > a : boolean
2015-04-13 23:01:57 +02:00
>a : number, Symbol(a, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 2, 3))
>a : number, Symbol(a, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 2, 3))
2014-08-15 23:33:16 +02:00
var rb2 = b > b;
2015-04-13 23:01:57 +02:00
>rb2 : boolean, Symbol(rb2, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 19, 3))
2014-08-15 23:33:16 +02:00
>b > b : boolean
2015-04-13 23:01:57 +02:00
>b : boolean, Symbol(b, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 3, 3))
>b : boolean, Symbol(b, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 3, 3))
2014-08-15 23:33:16 +02:00
var rb3 = c > c;
2015-04-13 23:01:57 +02:00
>rb3 : boolean, Symbol(rb3, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 20, 3))
2014-08-15 23:33:16 +02:00
>c > c : boolean
2015-04-13 23:01:57 +02:00
>c : string, Symbol(c, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 4, 3))
>c : string, Symbol(c, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 4, 3))
2014-08-15 23:33:16 +02:00
var rb4 = d > d;
2015-04-13 23:01:57 +02:00
>rb4 : boolean, Symbol(rb4, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 21, 3))
2014-08-15 23:33:16 +02:00
>d > d : boolean
2015-04-13 23:01:57 +02:00
>d : void, Symbol(d, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 5, 3))
>d : void, Symbol(d, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 5, 3))
2014-08-15 23:33:16 +02:00
var rb5 = e > e;
2015-04-13 23:01:57 +02:00
>rb5 : boolean, Symbol(rb5, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 22, 3))
2014-08-15 23:33:16 +02:00
>e > e : boolean
2015-04-13 23:01:57 +02:00
>e : E, Symbol(e, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 6, 3))
>e : E, Symbol(e, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 6, 3))
2014-08-15 23:33:16 +02:00
var rb6 = null > null;
2015-04-13 23:01:57 +02:00
>rb6 : boolean, Symbol(rb6, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 23, 3))
2014-08-15 23:33:16 +02:00
>null > null : boolean
2015-04-13 21:36:11 +02:00
>null : null
>null : null
2014-08-15 23:33:16 +02:00
var rb7 = undefined > undefined;
2015-04-13 23:01:57 +02:00
>rb7 : boolean, Symbol(rb7, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 24, 3))
2014-08-15 23:33:16 +02:00
>undefined > undefined : boolean
>undefined : undefined, Symbol(undefined)
>undefined : undefined, Symbol(undefined)
2014-08-15 23:33:16 +02:00
// operator <=
var rc1 = a <= a;
2015-04-13 23:01:57 +02:00
>rc1 : boolean, Symbol(rc1, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 27, 3))
2014-08-15 23:33:16 +02:00
>a <= a : boolean
2015-04-13 23:01:57 +02:00
>a : number, Symbol(a, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 2, 3))
>a : number, Symbol(a, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 2, 3))
2014-08-15 23:33:16 +02:00
var rc2 = b <= b;
2015-04-13 23:01:57 +02:00
>rc2 : boolean, Symbol(rc2, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 28, 3))
2014-08-15 23:33:16 +02:00
>b <= b : boolean
2015-04-13 23:01:57 +02:00
>b : boolean, Symbol(b, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 3, 3))
>b : boolean, Symbol(b, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 3, 3))
2014-08-15 23:33:16 +02:00
var rc3 = c <= c;
2015-04-13 23:01:57 +02:00
>rc3 : boolean, Symbol(rc3, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 29, 3))
2014-08-15 23:33:16 +02:00
>c <= c : boolean
2015-04-13 23:01:57 +02:00
>c : string, Symbol(c, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 4, 3))
>c : string, Symbol(c, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 4, 3))
2014-08-15 23:33:16 +02:00
var rc4 = d <= d;
2015-04-13 23:01:57 +02:00
>rc4 : boolean, Symbol(rc4, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 30, 3))
2014-08-15 23:33:16 +02:00
>d <= d : boolean
2015-04-13 23:01:57 +02:00
>d : void, Symbol(d, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 5, 3))
>d : void, Symbol(d, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 5, 3))
2014-08-15 23:33:16 +02:00
var rc5 = e <= e;
2015-04-13 23:01:57 +02:00
>rc5 : boolean, Symbol(rc5, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 31, 3))
2014-08-15 23:33:16 +02:00
>e <= e : boolean
2015-04-13 23:01:57 +02:00
>e : E, Symbol(e, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 6, 3))
>e : E, Symbol(e, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 6, 3))
2014-08-15 23:33:16 +02:00
var rc6 = null <= null;
2015-04-13 23:01:57 +02:00
>rc6 : boolean, Symbol(rc6, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 32, 3))
2014-08-15 23:33:16 +02:00
>null <= null : boolean
2015-04-13 21:36:11 +02:00
>null : null
>null : null
2014-08-15 23:33:16 +02:00
var rc7 = undefined <= undefined;
2015-04-13 23:01:57 +02:00
>rc7 : boolean, Symbol(rc7, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 33, 3))
2014-08-15 23:33:16 +02:00
>undefined <= undefined : boolean
>undefined : undefined, Symbol(undefined)
>undefined : undefined, Symbol(undefined)
2014-08-15 23:33:16 +02:00
// operator >=
var rd1 = a >= a;
2015-04-13 23:01:57 +02:00
>rd1 : boolean, Symbol(rd1, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 36, 3))
2014-08-15 23:33:16 +02:00
>a >= a : boolean
2015-04-13 23:01:57 +02:00
>a : number, Symbol(a, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 2, 3))
>a : number, Symbol(a, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 2, 3))
2014-08-15 23:33:16 +02:00
var rd2 = b >= b;
2015-04-13 23:01:57 +02:00
>rd2 : boolean, Symbol(rd2, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 37, 3))
2014-08-15 23:33:16 +02:00
>b >= b : boolean
2015-04-13 23:01:57 +02:00
>b : boolean, Symbol(b, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 3, 3))
>b : boolean, Symbol(b, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 3, 3))
2014-08-15 23:33:16 +02:00
var rd3 = c >= c;
2015-04-13 23:01:57 +02:00
>rd3 : boolean, Symbol(rd3, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 38, 3))
2014-08-15 23:33:16 +02:00
>c >= c : boolean
2015-04-13 23:01:57 +02:00
>c : string, Symbol(c, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 4, 3))
>c : string, Symbol(c, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 4, 3))
2014-08-15 23:33:16 +02:00
var rd4 = d >= d;
2015-04-13 23:01:57 +02:00
>rd4 : boolean, Symbol(rd4, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 39, 3))
2014-08-15 23:33:16 +02:00
>d >= d : boolean
2015-04-13 23:01:57 +02:00
>d : void, Symbol(d, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 5, 3))
>d : void, Symbol(d, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 5, 3))
2014-08-15 23:33:16 +02:00
var rd5 = e >= e;
2015-04-13 23:01:57 +02:00
>rd5 : boolean, Symbol(rd5, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 40, 3))
2014-08-15 23:33:16 +02:00
>e >= e : boolean
2015-04-13 23:01:57 +02:00
>e : E, Symbol(e, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 6, 3))
>e : E, Symbol(e, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 6, 3))
2014-08-15 23:33:16 +02:00
var rd6 = null >= null;
2015-04-13 23:01:57 +02:00
>rd6 : boolean, Symbol(rd6, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 41, 3))
2014-08-15 23:33:16 +02:00
>null >= null : boolean
2015-04-13 21:36:11 +02:00
>null : null
>null : null
2014-08-15 23:33:16 +02:00
var rd7 = undefined >= undefined;
2015-04-13 23:01:57 +02:00
>rd7 : boolean, Symbol(rd7, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 42, 3))
2014-08-15 23:33:16 +02:00
>undefined >= undefined : boolean
>undefined : undefined, Symbol(undefined)
>undefined : undefined, Symbol(undefined)
2014-08-15 23:33:16 +02:00
// operator ==
var re1 = a == a;
2015-04-13 23:01:57 +02:00
>re1 : boolean, Symbol(re1, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 45, 3))
2014-08-15 23:33:16 +02:00
>a == a : boolean
2015-04-13 23:01:57 +02:00
>a : number, Symbol(a, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 2, 3))
>a : number, Symbol(a, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 2, 3))
2014-08-15 23:33:16 +02:00
var re2 = b == b;
2015-04-13 23:01:57 +02:00
>re2 : boolean, Symbol(re2, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 46, 3))
2014-08-15 23:33:16 +02:00
>b == b : boolean
2015-04-13 23:01:57 +02:00
>b : boolean, Symbol(b, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 3, 3))
>b : boolean, Symbol(b, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 3, 3))
2014-08-15 23:33:16 +02:00
var re3 = c == c;
2015-04-13 23:01:57 +02:00
>re3 : boolean, Symbol(re3, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 47, 3))
2014-08-15 23:33:16 +02:00
>c == c : boolean
2015-04-13 23:01:57 +02:00
>c : string, Symbol(c, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 4, 3))
>c : string, Symbol(c, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 4, 3))
2014-08-15 23:33:16 +02:00
var re4 = d == d;
2015-04-13 23:01:57 +02:00
>re4 : boolean, Symbol(re4, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 48, 3))
2014-08-15 23:33:16 +02:00
>d == d : boolean
2015-04-13 23:01:57 +02:00
>d : void, Symbol(d, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 5, 3))
>d : void, Symbol(d, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 5, 3))
2014-08-15 23:33:16 +02:00
var re5 = e == e;
2015-04-13 23:01:57 +02:00
>re5 : boolean, Symbol(re5, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 49, 3))
2014-08-15 23:33:16 +02:00
>e == e : boolean
2015-04-13 23:01:57 +02:00
>e : E, Symbol(e, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 6, 3))
>e : E, Symbol(e, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 6, 3))
2014-08-15 23:33:16 +02:00
var re6 = null == null;
2015-04-13 23:01:57 +02:00
>re6 : boolean, Symbol(re6, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 50, 3))
2014-08-15 23:33:16 +02:00
>null == null : boolean
2015-04-13 21:36:11 +02:00
>null : null
>null : null
2014-08-15 23:33:16 +02:00
var re7 = undefined == undefined;
2015-04-13 23:01:57 +02:00
>re7 : boolean, Symbol(re7, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 51, 3))
2014-08-15 23:33:16 +02:00
>undefined == undefined : boolean
>undefined : undefined, Symbol(undefined)
>undefined : undefined, Symbol(undefined)
2014-08-15 23:33:16 +02:00
// operator !=
var rf1 = a != a;
2015-04-13 23:01:57 +02:00
>rf1 : boolean, Symbol(rf1, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 54, 3))
2014-08-15 23:33:16 +02:00
>a != a : boolean
2015-04-13 23:01:57 +02:00
>a : number, Symbol(a, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 2, 3))
>a : number, Symbol(a, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 2, 3))
2014-08-15 23:33:16 +02:00
var rf2 = b != b;
2015-04-13 23:01:57 +02:00
>rf2 : boolean, Symbol(rf2, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 55, 3))
2014-08-15 23:33:16 +02:00
>b != b : boolean
2015-04-13 23:01:57 +02:00
>b : boolean, Symbol(b, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 3, 3))
>b : boolean, Symbol(b, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 3, 3))
2014-08-15 23:33:16 +02:00
var rf3 = c != c;
2015-04-13 23:01:57 +02:00
>rf3 : boolean, Symbol(rf3, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 56, 3))
2014-08-15 23:33:16 +02:00
>c != c : boolean
2015-04-13 23:01:57 +02:00
>c : string, Symbol(c, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 4, 3))
>c : string, Symbol(c, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 4, 3))
2014-08-15 23:33:16 +02:00
var rf4 = d != d;
2015-04-13 23:01:57 +02:00
>rf4 : boolean, Symbol(rf4, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 57, 3))
2014-08-15 23:33:16 +02:00
>d != d : boolean
2015-04-13 23:01:57 +02:00
>d : void, Symbol(d, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 5, 3))
>d : void, Symbol(d, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 5, 3))
2014-08-15 23:33:16 +02:00
var rf5 = e != e;
2015-04-13 23:01:57 +02:00
>rf5 : boolean, Symbol(rf5, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 58, 3))
2014-08-15 23:33:16 +02:00
>e != e : boolean
2015-04-13 23:01:57 +02:00
>e : E, Symbol(e, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 6, 3))
>e : E, Symbol(e, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 6, 3))
2014-08-15 23:33:16 +02:00
var rf6 = null != null;
2015-04-13 23:01:57 +02:00
>rf6 : boolean, Symbol(rf6, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 59, 3))
2014-08-15 23:33:16 +02:00
>null != null : boolean
2015-04-13 21:36:11 +02:00
>null : null
>null : null
2014-08-15 23:33:16 +02:00
var rf7 = undefined != undefined;
2015-04-13 23:01:57 +02:00
>rf7 : boolean, Symbol(rf7, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 60, 3))
2014-08-15 23:33:16 +02:00
>undefined != undefined : boolean
>undefined : undefined, Symbol(undefined)
>undefined : undefined, Symbol(undefined)
2014-08-15 23:33:16 +02:00
// operator ===
var rg1 = a === a;
2015-04-13 23:01:57 +02:00
>rg1 : boolean, Symbol(rg1, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 63, 3))
2014-08-15 23:33:16 +02:00
>a === a : boolean
2015-04-13 23:01:57 +02:00
>a : number, Symbol(a, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 2, 3))
>a : number, Symbol(a, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 2, 3))
2014-08-15 23:33:16 +02:00
var rg2 = b === b;
2015-04-13 23:01:57 +02:00
>rg2 : boolean, Symbol(rg2, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 64, 3))
2014-08-15 23:33:16 +02:00
>b === b : boolean
2015-04-13 23:01:57 +02:00
>b : boolean, Symbol(b, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 3, 3))
>b : boolean, Symbol(b, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 3, 3))
2014-08-15 23:33:16 +02:00
var rg3 = c === c;
2015-04-13 23:01:57 +02:00
>rg3 : boolean, Symbol(rg3, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 65, 3))
2014-08-15 23:33:16 +02:00
>c === c : boolean
2015-04-13 23:01:57 +02:00
>c : string, Symbol(c, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 4, 3))
>c : string, Symbol(c, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 4, 3))
2014-08-15 23:33:16 +02:00
var rg4 = d === d;
2015-04-13 23:01:57 +02:00
>rg4 : boolean, Symbol(rg4, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 66, 3))
2014-08-15 23:33:16 +02:00
>d === d : boolean
2015-04-13 23:01:57 +02:00
>d : void, Symbol(d, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 5, 3))
>d : void, Symbol(d, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 5, 3))
2014-08-15 23:33:16 +02:00
var rg5 = e === e;
2015-04-13 23:01:57 +02:00
>rg5 : boolean, Symbol(rg5, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 67, 3))
2014-08-15 23:33:16 +02:00
>e === e : boolean
2015-04-13 23:01:57 +02:00
>e : E, Symbol(e, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 6, 3))
>e : E, Symbol(e, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 6, 3))
2014-08-15 23:33:16 +02:00
var rg6 = null === null;
2015-04-13 23:01:57 +02:00
>rg6 : boolean, Symbol(rg6, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 68, 3))
2014-08-15 23:33:16 +02:00
>null === null : boolean
2015-04-13 21:36:11 +02:00
>null : null
>null : null
2014-08-15 23:33:16 +02:00
var rg7 = undefined === undefined;
2015-04-13 23:01:57 +02:00
>rg7 : boolean, Symbol(rg7, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 69, 3))
2014-08-15 23:33:16 +02:00
>undefined === undefined : boolean
>undefined : undefined, Symbol(undefined)
>undefined : undefined, Symbol(undefined)
2014-08-15 23:33:16 +02:00
// operator !==
var rh1 = a !== a;
2015-04-13 23:01:57 +02:00
>rh1 : boolean, Symbol(rh1, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 72, 3))
2014-08-15 23:33:16 +02:00
>a !== a : boolean
2015-04-13 23:01:57 +02:00
>a : number, Symbol(a, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 2, 3))
>a : number, Symbol(a, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 2, 3))
2014-08-15 23:33:16 +02:00
var rh2 = b !== b;
2015-04-13 23:01:57 +02:00
>rh2 : boolean, Symbol(rh2, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 73, 3))
2014-08-15 23:33:16 +02:00
>b !== b : boolean
2015-04-13 23:01:57 +02:00
>b : boolean, Symbol(b, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 3, 3))
>b : boolean, Symbol(b, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 3, 3))
2014-08-15 23:33:16 +02:00
var rh3 = c !== c;
2015-04-13 23:01:57 +02:00
>rh3 : boolean, Symbol(rh3, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 74, 3))
2014-08-15 23:33:16 +02:00
>c !== c : boolean
2015-04-13 23:01:57 +02:00
>c : string, Symbol(c, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 4, 3))
>c : string, Symbol(c, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 4, 3))
2014-08-15 23:33:16 +02:00
var rh4 = d !== d;
2015-04-13 23:01:57 +02:00
>rh4 : boolean, Symbol(rh4, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 75, 3))
2014-08-15 23:33:16 +02:00
>d !== d : boolean
2015-04-13 23:01:57 +02:00
>d : void, Symbol(d, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 5, 3))
>d : void, Symbol(d, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 5, 3))
2014-08-15 23:33:16 +02:00
var rh5 = e !== e;
2015-04-13 23:01:57 +02:00
>rh5 : boolean, Symbol(rh5, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 76, 3))
2014-08-15 23:33:16 +02:00
>e !== e : boolean
2015-04-13 23:01:57 +02:00
>e : E, Symbol(e, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 6, 3))
>e : E, Symbol(e, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 6, 3))
2014-08-15 23:33:16 +02:00
var rh6 = null !== null;
2015-04-13 23:01:57 +02:00
>rh6 : boolean, Symbol(rh6, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 77, 3))
2014-08-15 23:33:16 +02:00
>null !== null : boolean
2015-04-13 21:36:11 +02:00
>null : null
>null : null
2014-08-15 23:33:16 +02:00
var rh7 = undefined !== undefined;
2015-04-13 23:01:57 +02:00
>rh7 : boolean, Symbol(rh7, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 78, 3))
2014-08-15 23:33:16 +02:00
>undefined !== undefined : boolean
>undefined : undefined, Symbol(undefined)
>undefined : undefined, Symbol(undefined)
2014-08-15 23:33:16 +02:00