239 lines
11 KiB
Text
239 lines
11 KiB
Text
=== tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithSubtypeObjectOnProperty.ts ===
|
|
class Base {
|
|
>Base : Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 0, 0))
|
|
|
|
public a: string;
|
|
>a : Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 0, 12))
|
|
}
|
|
|
|
class Derived extends Base {
|
|
>Derived : Symbol(Derived, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 2, 1))
|
|
>Base : Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 0, 0))
|
|
|
|
public b: string;
|
|
>b : Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 4, 28))
|
|
}
|
|
|
|
class A1 {
|
|
>A1 : Symbol(A1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 6, 1))
|
|
|
|
public a: Base;
|
|
>a : Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 8, 10))
|
|
>Base : Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 0, 0))
|
|
|
|
public b: Base;
|
|
>b : Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 9, 19))
|
|
>Base : Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 0, 0))
|
|
}
|
|
|
|
class B1 {
|
|
>B1 : Symbol(B1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 11, 1))
|
|
|
|
public a: Base;
|
|
>a : Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 13, 10))
|
|
>Base : Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 0, 0))
|
|
|
|
public b: Derived;
|
|
>b : Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 14, 19))
|
|
>Derived : Symbol(Derived, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 2, 1))
|
|
}
|
|
|
|
class A2 {
|
|
>A2 : Symbol(A2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 16, 1))
|
|
|
|
private a;
|
|
>a : Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 18, 10))
|
|
}
|
|
|
|
class B2 extends A2 {
|
|
>B2 : Symbol(B2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 20, 1))
|
|
>A2 : Symbol(A2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 16, 1))
|
|
|
|
private b;
|
|
>b : Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 22, 21))
|
|
}
|
|
|
|
var a1: A1;
|
|
>a1 : Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 26, 3))
|
|
>A1 : Symbol(A1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 6, 1))
|
|
|
|
var a2: A2;
|
|
>a2 : Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 27, 3))
|
|
>A2 : Symbol(A2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 16, 1))
|
|
|
|
var b1: B1;
|
|
>b1 : Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 28, 3))
|
|
>B1 : Symbol(B1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 11, 1))
|
|
|
|
var b2: B2;
|
|
>b2 : Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 29, 3))
|
|
>B2 : Symbol(B2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 20, 1))
|
|
|
|
// operator <
|
|
var ra1 = a1 < b1;
|
|
>ra1 : Symbol(ra1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 32, 3))
|
|
>a1 : Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 26, 3))
|
|
>b1 : Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 28, 3))
|
|
|
|
var ra2 = a2 < b2;
|
|
>ra2 : Symbol(ra2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 33, 3))
|
|
>a2 : Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 27, 3))
|
|
>b2 : Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 29, 3))
|
|
|
|
var ra3 = b1 < a1;
|
|
>ra3 : Symbol(ra3, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 34, 3))
|
|
>b1 : Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 28, 3))
|
|
>a1 : Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 26, 3))
|
|
|
|
var ra4 = b2 < a2;
|
|
>ra4 : Symbol(ra4, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 35, 3))
|
|
>b2 : Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 29, 3))
|
|
>a2 : Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 27, 3))
|
|
|
|
// operator >
|
|
var rb1 = a1 > b1;
|
|
>rb1 : Symbol(rb1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 38, 3))
|
|
>a1 : Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 26, 3))
|
|
>b1 : Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 28, 3))
|
|
|
|
var rb2 = a2 > b2;
|
|
>rb2 : Symbol(rb2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 39, 3))
|
|
>a2 : Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 27, 3))
|
|
>b2 : Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 29, 3))
|
|
|
|
var rb3 = b1 > a1;
|
|
>rb3 : Symbol(rb3, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 40, 3))
|
|
>b1 : Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 28, 3))
|
|
>a1 : Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 26, 3))
|
|
|
|
var rb4 = b2 > a2;
|
|
>rb4 : Symbol(rb4, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 41, 3))
|
|
>b2 : Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 29, 3))
|
|
>a2 : Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 27, 3))
|
|
|
|
// operator <=
|
|
var rc1 = a1 <= b1;
|
|
>rc1 : Symbol(rc1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 44, 3))
|
|
>a1 : Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 26, 3))
|
|
>b1 : Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 28, 3))
|
|
|
|
var rc2 = a2 <= b2;
|
|
>rc2 : Symbol(rc2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 45, 3))
|
|
>a2 : Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 27, 3))
|
|
>b2 : Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 29, 3))
|
|
|
|
var rc3 = b1 <= a1;
|
|
>rc3 : Symbol(rc3, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 46, 3))
|
|
>b1 : Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 28, 3))
|
|
>a1 : Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 26, 3))
|
|
|
|
var rc4 = b2 <= a2;
|
|
>rc4 : Symbol(rc4, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 47, 3))
|
|
>b2 : Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 29, 3))
|
|
>a2 : Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 27, 3))
|
|
|
|
// operator >=
|
|
var rd1 = a1 >= b1;
|
|
>rd1 : Symbol(rd1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 50, 3))
|
|
>a1 : Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 26, 3))
|
|
>b1 : Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 28, 3))
|
|
|
|
var rd2 = a2 >= b2;
|
|
>rd2 : Symbol(rd2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 51, 3))
|
|
>a2 : Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 27, 3))
|
|
>b2 : Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 29, 3))
|
|
|
|
var rd3 = b1 >= a1;
|
|
>rd3 : Symbol(rd3, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 52, 3))
|
|
>b1 : Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 28, 3))
|
|
>a1 : Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 26, 3))
|
|
|
|
var rd4 = b2 >= a2;
|
|
>rd4 : Symbol(rd4, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 53, 3))
|
|
>b2 : Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 29, 3))
|
|
>a2 : Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 27, 3))
|
|
|
|
// operator ==
|
|
var re1 = a1 == b1;
|
|
>re1 : Symbol(re1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 56, 3))
|
|
>a1 : Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 26, 3))
|
|
>b1 : Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 28, 3))
|
|
|
|
var re2 = a2 == b2;
|
|
>re2 : Symbol(re2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 57, 3))
|
|
>a2 : Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 27, 3))
|
|
>b2 : Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 29, 3))
|
|
|
|
var re3 = b1 == a1;
|
|
>re3 : Symbol(re3, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 58, 3))
|
|
>b1 : Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 28, 3))
|
|
>a1 : Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 26, 3))
|
|
|
|
var re4 = b2 == a2;
|
|
>re4 : Symbol(re4, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 59, 3))
|
|
>b2 : Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 29, 3))
|
|
>a2 : Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 27, 3))
|
|
|
|
// operator !=
|
|
var rf1 = a1 != b1;
|
|
>rf1 : Symbol(rf1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 62, 3))
|
|
>a1 : Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 26, 3))
|
|
>b1 : Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 28, 3))
|
|
|
|
var rf2 = a2 != b2;
|
|
>rf2 : Symbol(rf2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 63, 3))
|
|
>a2 : Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 27, 3))
|
|
>b2 : Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 29, 3))
|
|
|
|
var rf3 = b1 != a1;
|
|
>rf3 : Symbol(rf3, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 64, 3))
|
|
>b1 : Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 28, 3))
|
|
>a1 : Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 26, 3))
|
|
|
|
var rf4 = b2 != a2;
|
|
>rf4 : Symbol(rf4, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 65, 3))
|
|
>b2 : Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 29, 3))
|
|
>a2 : Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 27, 3))
|
|
|
|
// operator ===
|
|
var rg1 = a1 === b1;
|
|
>rg1 : Symbol(rg1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 68, 3))
|
|
>a1 : Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 26, 3))
|
|
>b1 : Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 28, 3))
|
|
|
|
var rg2 = a2 === b2;
|
|
>rg2 : Symbol(rg2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 69, 3))
|
|
>a2 : Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 27, 3))
|
|
>b2 : Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 29, 3))
|
|
|
|
var rg3 = b1 === a1;
|
|
>rg3 : Symbol(rg3, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 70, 3))
|
|
>b1 : Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 28, 3))
|
|
>a1 : Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 26, 3))
|
|
|
|
var rg4 = b2 === a2;
|
|
>rg4 : Symbol(rg4, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 71, 3))
|
|
>b2 : Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 29, 3))
|
|
>a2 : Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 27, 3))
|
|
|
|
// operator !==
|
|
var rh1 = a1 !== b1;
|
|
>rh1 : Symbol(rh1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 74, 3))
|
|
>a1 : Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 26, 3))
|
|
>b1 : Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 28, 3))
|
|
|
|
var rh2 = a2 !== b2;
|
|
>rh2 : Symbol(rh2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 75, 3))
|
|
>a2 : Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 27, 3))
|
|
>b2 : Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 29, 3))
|
|
|
|
var rh3 = b1 !== a1;
|
|
>rh3 : Symbol(rh3, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 76, 3))
|
|
>b1 : Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 28, 3))
|
|
>a1 : Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 26, 3))
|
|
|
|
var rh4 = b2 !== a2;
|
|
>rh4 : Symbol(rh4, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 77, 3))
|
|
>b2 : Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 29, 3))
|
|
>a2 : Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 27, 3))
|
|
|