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