TypeScript/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.errors.txt
2018-06-28 16:08:02 -07:00

459 lines
44 KiB
Plaintext

tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(35,12): error TS2365: Operator '<' cannot be applied to types '{ fn(): Base; }' and 'new () => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(36,12): error TS2365: Operator '<' cannot be applied to types 'new (a: number, b: string) => Base' and 'new (a: string) => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(37,12): error TS2365: Operator '<' cannot be applied to types 'new (a: Base, b: string) => Base' and 'new (a: Derived, b: Base) => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(38,12): error TS2365: Operator '<' cannot be applied to types 'new () => Base' and 'new () => C'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(39,12): error TS2365: Operator '<' cannot be applied to types 'new (a?: Base) => Base' and 'new (a?: C) => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(40,12): error TS2365: Operator '<' cannot be applied to types 'new (...a: Base[]) => Base' and 'new (...a: C[]) => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(43,12): error TS2365: Operator '<' cannot be applied to types 'new () => Base' and '{ fn(): Base; }'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(44,12): error TS2365: Operator '<' cannot be applied to types 'new (a: string) => Base' and 'new (a: number, b: string) => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(45,12): error TS2365: Operator '<' cannot be applied to types 'new (a: Derived, b: Base) => Base' and 'new (a: Base, b: string) => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(46,12): error TS2365: Operator '<' cannot be applied to types 'new () => C' and 'new () => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(47,12): error TS2365: Operator '<' cannot be applied to types 'new (a?: C) => Base' and 'new (a?: Base) => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(48,12): error TS2365: Operator '<' cannot be applied to types 'new (...a: C[]) => Base' and 'new (...a: Base[]) => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(52,12): error TS2365: Operator '>' cannot be applied to types '{ fn(): Base; }' and 'new () => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(53,12): error TS2365: Operator '>' cannot be applied to types 'new (a: number, b: string) => Base' and 'new (a: string) => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(54,12): error TS2365: Operator '>' cannot be applied to types 'new (a: Base, b: string) => Base' and 'new (a: Derived, b: Base) => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(55,12): error TS2365: Operator '>' cannot be applied to types 'new () => Base' and 'new () => C'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(56,12): error TS2365: Operator '>' cannot be applied to types 'new (a?: Base) => Base' and 'new (a?: C) => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(57,12): error TS2365: Operator '>' cannot be applied to types 'new (...a: Base[]) => Base' and 'new (...a: C[]) => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(60,12): error TS2365: Operator '>' cannot be applied to types 'new () => Base' and '{ fn(): Base; }'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(61,12): error TS2365: Operator '>' cannot be applied to types 'new (a: string) => Base' and 'new (a: number, b: string) => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(62,12): error TS2365: Operator '>' cannot be applied to types 'new (a: Derived, b: Base) => Base' and 'new (a: Base, b: string) => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(63,12): error TS2365: Operator '>' cannot be applied to types 'new () => C' and 'new () => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(64,12): error TS2365: Operator '>' cannot be applied to types 'new (a?: C) => Base' and 'new (a?: Base) => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(65,12): error TS2365: Operator '>' cannot be applied to types 'new (...a: C[]) => Base' and 'new (...a: Base[]) => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(69,12): error TS2365: Operator '<=' cannot be applied to types '{ fn(): Base; }' and 'new () => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(70,12): error TS2365: Operator '<=' cannot be applied to types 'new (a: number, b: string) => Base' and 'new (a: string) => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(71,12): error TS2365: Operator '<=' cannot be applied to types 'new (a: Base, b: string) => Base' and 'new (a: Derived, b: Base) => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(72,12): error TS2365: Operator '<=' cannot be applied to types 'new () => Base' and 'new () => C'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(73,12): error TS2365: Operator '<=' cannot be applied to types 'new (a?: Base) => Base' and 'new (a?: C) => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(74,12): error TS2365: Operator '<=' cannot be applied to types 'new (...a: Base[]) => Base' and 'new (...a: C[]) => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(77,12): error TS2365: Operator '<=' cannot be applied to types 'new () => Base' and '{ fn(): Base; }'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(78,12): error TS2365: Operator '<=' cannot be applied to types 'new (a: string) => Base' and 'new (a: number, b: string) => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(79,12): error TS2365: Operator '<=' cannot be applied to types 'new (a: Derived, b: Base) => Base' and 'new (a: Base, b: string) => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(80,12): error TS2365: Operator '<=' cannot be applied to types 'new () => C' and 'new () => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(81,12): error TS2365: Operator '<=' cannot be applied to types 'new (a?: C) => Base' and 'new (a?: Base) => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(82,12): error TS2365: Operator '<=' cannot be applied to types 'new (...a: C[]) => Base' and 'new (...a: Base[]) => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(86,12): error TS2365: Operator '>=' cannot be applied to types '{ fn(): Base; }' and 'new () => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(87,12): error TS2365: Operator '>=' cannot be applied to types 'new (a: number, b: string) => Base' and 'new (a: string) => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(88,12): error TS2365: Operator '>=' cannot be applied to types 'new (a: Base, b: string) => Base' and 'new (a: Derived, b: Base) => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(89,12): error TS2365: Operator '>=' cannot be applied to types 'new () => Base' and 'new () => C'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(90,12): error TS2365: Operator '>=' cannot be applied to types 'new (a?: Base) => Base' and 'new (a?: C) => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(91,12): error TS2365: Operator '>=' cannot be applied to types 'new (...a: Base[]) => Base' and 'new (...a: C[]) => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(94,12): error TS2365: Operator '>=' cannot be applied to types 'new () => Base' and '{ fn(): Base; }'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(95,12): error TS2365: Operator '>=' cannot be applied to types 'new (a: string) => Base' and 'new (a: number, b: string) => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(96,12): error TS2365: Operator '>=' cannot be applied to types 'new (a: Derived, b: Base) => Base' and 'new (a: Base, b: string) => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(97,12): error TS2365: Operator '>=' cannot be applied to types 'new () => C' and 'new () => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(98,12): error TS2365: Operator '>=' cannot be applied to types 'new (a?: C) => Base' and 'new (a?: Base) => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(99,12): error TS2365: Operator '>=' cannot be applied to types 'new (...a: C[]) => Base' and 'new (...a: Base[]) => Base'.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(103,12): error TS2367: This condition will always return 'false' since the types '{ fn(): Base; }' and 'new () => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(104,12): error TS2367: This condition will always return 'false' since the types 'new (a: number, b: string) => Base' and 'new (a: string) => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(105,12): error TS2367: This condition will always return 'false' since the types 'new (a: Base, b: string) => Base' and 'new (a: Derived, b: Base) => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(106,12): error TS2367: This condition will always return 'false' since the types 'new () => Base' and 'new () => C' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(107,12): error TS2367: This condition will always return 'false' since the types 'new (a?: Base) => Base' and 'new (a?: C) => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(108,12): error TS2367: This condition will always return 'false' since the types 'new (...a: Base[]) => Base' and 'new (...a: C[]) => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(111,12): error TS2367: This condition will always return 'false' since the types 'new () => Base' and '{ fn(): Base; }' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(112,12): error TS2367: This condition will always return 'false' since the types 'new (a: string) => Base' and 'new (a: number, b: string) => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(113,12): error TS2367: This condition will always return 'false' since the types 'new (a: Derived, b: Base) => Base' and 'new (a: Base, b: string) => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(114,12): error TS2367: This condition will always return 'false' since the types 'new () => C' and 'new () => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(115,12): error TS2367: This condition will always return 'false' since the types 'new (a?: C) => Base' and 'new (a?: Base) => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(116,12): error TS2367: This condition will always return 'false' since the types 'new (...a: C[]) => Base' and 'new (...a: Base[]) => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(120,12): error TS2367: This condition will always return 'true' since the types '{ fn(): Base; }' and 'new () => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(121,12): error TS2367: This condition will always return 'true' since the types 'new (a: number, b: string) => Base' and 'new (a: string) => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(122,12): error TS2367: This condition will always return 'true' since the types 'new (a: Base, b: string) => Base' and 'new (a: Derived, b: Base) => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(123,12): error TS2367: This condition will always return 'true' since the types 'new () => Base' and 'new () => C' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(124,12): error TS2367: This condition will always return 'true' since the types 'new (a?: Base) => Base' and 'new (a?: C) => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(125,12): error TS2367: This condition will always return 'true' since the types 'new (...a: Base[]) => Base' and 'new (...a: C[]) => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(128,12): error TS2367: This condition will always return 'true' since the types 'new () => Base' and '{ fn(): Base; }' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(129,12): error TS2367: This condition will always return 'true' since the types 'new (a: string) => Base' and 'new (a: number, b: string) => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(130,12): error TS2367: This condition will always return 'true' since the types 'new (a: Derived, b: Base) => Base' and 'new (a: Base, b: string) => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(131,12): error TS2367: This condition will always return 'true' since the types 'new () => C' and 'new () => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(132,12): error TS2367: This condition will always return 'true' since the types 'new (a?: C) => Base' and 'new (a?: Base) => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(133,12): error TS2367: This condition will always return 'true' since the types 'new (...a: C[]) => Base' and 'new (...a: Base[]) => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(137,12): error TS2367: This condition will always return 'false' since the types '{ fn(): Base; }' and 'new () => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(138,12): error TS2367: This condition will always return 'false' since the types 'new (a: number, b: string) => Base' and 'new (a: string) => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(139,12): error TS2367: This condition will always return 'false' since the types 'new (a: Base, b: string) => Base' and 'new (a: Derived, b: Base) => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(140,12): error TS2367: This condition will always return 'false' since the types 'new () => Base' and 'new () => C' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(141,12): error TS2367: This condition will always return 'false' since the types 'new (a?: Base) => Base' and 'new (a?: C) => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(142,12): error TS2367: This condition will always return 'false' since the types 'new (...a: Base[]) => Base' and 'new (...a: C[]) => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(145,12): error TS2367: This condition will always return 'false' since the types 'new () => Base' and '{ fn(): Base; }' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(146,12): error TS2367: This condition will always return 'false' since the types 'new (a: string) => Base' and 'new (a: number, b: string) => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(147,12): error TS2367: This condition will always return 'false' since the types 'new (a: Derived, b: Base) => Base' and 'new (a: Base, b: string) => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(148,12): error TS2367: This condition will always return 'false' since the types 'new () => C' and 'new () => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(149,12): error TS2367: This condition will always return 'false' since the types 'new (a?: C) => Base' and 'new (a?: Base) => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(150,12): error TS2367: This condition will always return 'false' since the types 'new (...a: C[]) => Base' and 'new (...a: Base[]) => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(154,12): error TS2367: This condition will always return 'true' since the types '{ fn(): Base; }' and 'new () => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(155,12): error TS2367: This condition will always return 'true' since the types 'new (a: number, b: string) => Base' and 'new (a: string) => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(156,12): error TS2367: This condition will always return 'true' since the types 'new (a: Base, b: string) => Base' and 'new (a: Derived, b: Base) => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(157,12): error TS2367: This condition will always return 'true' since the types 'new () => Base' and 'new () => C' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(158,12): error TS2367: This condition will always return 'true' since the types 'new (a?: Base) => Base' and 'new (a?: C) => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(159,12): error TS2367: This condition will always return 'true' since the types 'new (...a: Base[]) => Base' and 'new (...a: C[]) => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(162,12): error TS2367: This condition will always return 'true' since the types 'new () => Base' and '{ fn(): Base; }' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(163,12): error TS2367: This condition will always return 'true' since the types 'new (a: string) => Base' and 'new (a: number, b: string) => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(164,12): error TS2367: This condition will always return 'true' since the types 'new (a: Derived, b: Base) => Base' and 'new (a: Base, b: string) => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(165,12): error TS2367: This condition will always return 'true' since the types 'new () => C' and 'new () => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(166,12): error TS2367: This condition will always return 'true' since the types 'new (a?: C) => Base' and 'new (a?: Base) => Base' have no overlap.
tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts(167,12): error TS2367: This condition will always return 'true' since the types 'new (...a: C[]) => Base' and 'new (...a: Base[]) => Base' have no overlap.
==== tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts (96 errors) ====
class Base {
public a: string;
}
class Derived extends Base {
public b: string;
}
class C {
public c: string;
}
var a1: { fn(): Base };
var b1: { new (): Base };
var a2: { new (a: number, b: string): Base };
var b2: { new (a: string): Base };
var a3: { new (a: Base, b: string): Base };
var b3: { new (a: Derived, b: Base): Base };
var a4: { new (): Base };
var b4: { new (): C };
var a5: { new (a?: Base): Base };
var b5: { new (a?: C): Base };
var a6: { new (...a: Base[]): Base };
var b6: { new (...a: C[]): Base };
var a7: { new <T>(t: T): T };
var b7: { new <T>(t: T[]): T };
// operator <
var r1a1 = a1 < b1;
~~~~~~~
!!! error TS2365: Operator '<' cannot be applied to types '{ fn(): Base; }' and 'new () => Base'.
var r1a2 = a2 < b2;
~~~~~~~
!!! error TS2365: Operator '<' cannot be applied to types 'new (a: number, b: string) => Base' and 'new (a: string) => Base'.
var r1a3 = a3 < b3;
~~~~~~~
!!! error TS2365: Operator '<' cannot be applied to types 'new (a: Base, b: string) => Base' and 'new (a: Derived, b: Base) => Base'.
var r1a4 = a4 < b4;
~~~~~~~
!!! error TS2365: Operator '<' cannot be applied to types 'new () => Base' and 'new () => C'.
var r1a5 = a5 < b5;
~~~~~~~
!!! error TS2365: Operator '<' cannot be applied to types 'new (a?: Base) => Base' and 'new (a?: C) => Base'.
var r1a6 = a6 < b6;
~~~~~~~
!!! error TS2365: Operator '<' cannot be applied to types 'new (...a: Base[]) => Base' and 'new (...a: C[]) => Base'.
var r1a7 = a7 < b7;
var r1b1 = b1 < a1;
~~~~~~~
!!! error TS2365: Operator '<' cannot be applied to types 'new () => Base' and '{ fn(): Base; }'.
var r1b2 = b2 < a2;
~~~~~~~
!!! error TS2365: Operator '<' cannot be applied to types 'new (a: string) => Base' and 'new (a: number, b: string) => Base'.
var r1b3 = b3 < a3;
~~~~~~~
!!! error TS2365: Operator '<' cannot be applied to types 'new (a: Derived, b: Base) => Base' and 'new (a: Base, b: string) => Base'.
var r1b4 = b4 < a4;
~~~~~~~
!!! error TS2365: Operator '<' cannot be applied to types 'new () => C' and 'new () => Base'.
var r1b5 = b5 < a5;
~~~~~~~
!!! error TS2365: Operator '<' cannot be applied to types 'new (a?: C) => Base' and 'new (a?: Base) => Base'.
var r1b6 = b6 < a6;
~~~~~~~
!!! error TS2365: Operator '<' cannot be applied to types 'new (...a: C[]) => Base' and 'new (...a: Base[]) => Base'.
var r1b7 = b7 < a7;
// operator >
var r2a1 = a1 > b1;
~~~~~~~
!!! error TS2365: Operator '>' cannot be applied to types '{ fn(): Base; }' and 'new () => Base'.
var r2a2 = a2 > b2;
~~~~~~~
!!! error TS2365: Operator '>' cannot be applied to types 'new (a: number, b: string) => Base' and 'new (a: string) => Base'.
var r2a3 = a3 > b3;
~~~~~~~
!!! error TS2365: Operator '>' cannot be applied to types 'new (a: Base, b: string) => Base' and 'new (a: Derived, b: Base) => Base'.
var r2a4 = a4 > b4;
~~~~~~~
!!! error TS2365: Operator '>' cannot be applied to types 'new () => Base' and 'new () => C'.
var r2a5 = a5 > b5;
~~~~~~~
!!! error TS2365: Operator '>' cannot be applied to types 'new (a?: Base) => Base' and 'new (a?: C) => Base'.
var r2a6 = a6 > b6;
~~~~~~~
!!! error TS2365: Operator '>' cannot be applied to types 'new (...a: Base[]) => Base' and 'new (...a: C[]) => Base'.
var r2a7 = a7 > b7;
var r2b1 = b1 > a1;
~~~~~~~
!!! error TS2365: Operator '>' cannot be applied to types 'new () => Base' and '{ fn(): Base; }'.
var r2b2 = b2 > a2;
~~~~~~~
!!! error TS2365: Operator '>' cannot be applied to types 'new (a: string) => Base' and 'new (a: number, b: string) => Base'.
var r2b3 = b3 > a3;
~~~~~~~
!!! error TS2365: Operator '>' cannot be applied to types 'new (a: Derived, b: Base) => Base' and 'new (a: Base, b: string) => Base'.
var r2b4 = b4 > a4;
~~~~~~~
!!! error TS2365: Operator '>' cannot be applied to types 'new () => C' and 'new () => Base'.
var r2b5 = b5 > a5;
~~~~~~~
!!! error TS2365: Operator '>' cannot be applied to types 'new (a?: C) => Base' and 'new (a?: Base) => Base'.
var r2b6 = b6 > a6;
~~~~~~~
!!! error TS2365: Operator '>' cannot be applied to types 'new (...a: C[]) => Base' and 'new (...a: Base[]) => Base'.
var r2b7 = b7 > a7;
// operator <=
var r3a1 = a1 <= b1;
~~~~~~~~
!!! error TS2365: Operator '<=' cannot be applied to types '{ fn(): Base; }' and 'new () => Base'.
var r3a2 = a2 <= b2;
~~~~~~~~
!!! error TS2365: Operator '<=' cannot be applied to types 'new (a: number, b: string) => Base' and 'new (a: string) => Base'.
var r3a3 = a3 <= b3;
~~~~~~~~
!!! error TS2365: Operator '<=' cannot be applied to types 'new (a: Base, b: string) => Base' and 'new (a: Derived, b: Base) => Base'.
var r3a4 = a4 <= b4;
~~~~~~~~
!!! error TS2365: Operator '<=' cannot be applied to types 'new () => Base' and 'new () => C'.
var r3a5 = a5 <= b5;
~~~~~~~~
!!! error TS2365: Operator '<=' cannot be applied to types 'new (a?: Base) => Base' and 'new (a?: C) => Base'.
var r3a6 = a6 <= b6;
~~~~~~~~
!!! error TS2365: Operator '<=' cannot be applied to types 'new (...a: Base[]) => Base' and 'new (...a: C[]) => Base'.
var r3a7 = a7 <= b7;
var r3b1 = b1 <= a1;
~~~~~~~~
!!! error TS2365: Operator '<=' cannot be applied to types 'new () => Base' and '{ fn(): Base; }'.
var r3b2 = b2 <= a2;
~~~~~~~~
!!! error TS2365: Operator '<=' cannot be applied to types 'new (a: string) => Base' and 'new (a: number, b: string) => Base'.
var r3b3 = b3 <= a3;
~~~~~~~~
!!! error TS2365: Operator '<=' cannot be applied to types 'new (a: Derived, b: Base) => Base' and 'new (a: Base, b: string) => Base'.
var r3b4 = b4 <= a4;
~~~~~~~~
!!! error TS2365: Operator '<=' cannot be applied to types 'new () => C' and 'new () => Base'.
var r3b5 = b5 <= a5;
~~~~~~~~
!!! error TS2365: Operator '<=' cannot be applied to types 'new (a?: C) => Base' and 'new (a?: Base) => Base'.
var r3b6 = b6 <= a6;
~~~~~~~~
!!! error TS2365: Operator '<=' cannot be applied to types 'new (...a: C[]) => Base' and 'new (...a: Base[]) => Base'.
var r3b7 = b7 <= a7;
// operator >=
var r4a1 = a1 >= b1;
~~~~~~~~
!!! error TS2365: Operator '>=' cannot be applied to types '{ fn(): Base; }' and 'new () => Base'.
var r4a2 = a2 >= b2;
~~~~~~~~
!!! error TS2365: Operator '>=' cannot be applied to types 'new (a: number, b: string) => Base' and 'new (a: string) => Base'.
var r4a3 = a3 >= b3;
~~~~~~~~
!!! error TS2365: Operator '>=' cannot be applied to types 'new (a: Base, b: string) => Base' and 'new (a: Derived, b: Base) => Base'.
var r4a4 = a4 >= b4;
~~~~~~~~
!!! error TS2365: Operator '>=' cannot be applied to types 'new () => Base' and 'new () => C'.
var r4a5 = a5 >= b5;
~~~~~~~~
!!! error TS2365: Operator '>=' cannot be applied to types 'new (a?: Base) => Base' and 'new (a?: C) => Base'.
var r4a6 = a6 >= b6;
~~~~~~~~
!!! error TS2365: Operator '>=' cannot be applied to types 'new (...a: Base[]) => Base' and 'new (...a: C[]) => Base'.
var r4a7 = a7 >= b7;
var r4b1 = b1 >= a1;
~~~~~~~~
!!! error TS2365: Operator '>=' cannot be applied to types 'new () => Base' and '{ fn(): Base; }'.
var r4b2 = b2 >= a2;
~~~~~~~~
!!! error TS2365: Operator '>=' cannot be applied to types 'new (a: string) => Base' and 'new (a: number, b: string) => Base'.
var r4b3 = b3 >= a3;
~~~~~~~~
!!! error TS2365: Operator '>=' cannot be applied to types 'new (a: Derived, b: Base) => Base' and 'new (a: Base, b: string) => Base'.
var r4b4 = b4 >= a4;
~~~~~~~~
!!! error TS2365: Operator '>=' cannot be applied to types 'new () => C' and 'new () => Base'.
var r4b5 = b5 >= a5;
~~~~~~~~
!!! error TS2365: Operator '>=' cannot be applied to types 'new (a?: C) => Base' and 'new (a?: Base) => Base'.
var r4b6 = b6 >= a6;
~~~~~~~~
!!! error TS2365: Operator '>=' cannot be applied to types 'new (...a: C[]) => Base' and 'new (...a: Base[]) => Base'.
var r4b7 = b7 >= a7;
// operator ==
var r5a1 = a1 == b1;
~~~~~~~~
!!! error TS2367: This condition will always return 'false' since the types '{ fn(): Base; }' and 'new () => Base' have no overlap.
var r5a2 = a2 == b2;
~~~~~~~~
!!! error TS2367: This condition will always return 'false' since the types 'new (a: number, b: string) => Base' and 'new (a: string) => Base' have no overlap.
var r5a3 = a3 == b3;
~~~~~~~~
!!! error TS2367: This condition will always return 'false' since the types 'new (a: Base, b: string) => Base' and 'new (a: Derived, b: Base) => Base' have no overlap.
var r5a4 = a4 == b4;
~~~~~~~~
!!! error TS2367: This condition will always return 'false' since the types 'new () => Base' and 'new () => C' have no overlap.
var r5a5 = a5 == b5;
~~~~~~~~
!!! error TS2367: This condition will always return 'false' since the types 'new (a?: Base) => Base' and 'new (a?: C) => Base' have no overlap.
var r5a6 = a6 == b6;
~~~~~~~~
!!! error TS2367: This condition will always return 'false' since the types 'new (...a: Base[]) => Base' and 'new (...a: C[]) => Base' have no overlap.
var r5a7 = a7 == b7;
var r5b1 = b1 == a1;
~~~~~~~~
!!! error TS2367: This condition will always return 'false' since the types 'new () => Base' and '{ fn(): Base; }' have no overlap.
var r5b2 = b2 == a2;
~~~~~~~~
!!! error TS2367: This condition will always return 'false' since the types 'new (a: string) => Base' and 'new (a: number, b: string) => Base' have no overlap.
var r5b3 = b3 == a3;
~~~~~~~~
!!! error TS2367: This condition will always return 'false' since the types 'new (a: Derived, b: Base) => Base' and 'new (a: Base, b: string) => Base' have no overlap.
var r5b4 = b4 == a4;
~~~~~~~~
!!! error TS2367: This condition will always return 'false' since the types 'new () => C' and 'new () => Base' have no overlap.
var r5b5 = b5 == a5;
~~~~~~~~
!!! error TS2367: This condition will always return 'false' since the types 'new (a?: C) => Base' and 'new (a?: Base) => Base' have no overlap.
var r5b6 = b6 == a6;
~~~~~~~~
!!! error TS2367: This condition will always return 'false' since the types 'new (...a: C[]) => Base' and 'new (...a: Base[]) => Base' have no overlap.
var r5b7 = b7 == a7;
// operator !=
var r6a1 = a1 != b1;
~~~~~~~~
!!! error TS2367: This condition will always return 'true' since the types '{ fn(): Base; }' and 'new () => Base' have no overlap.
var r6a2 = a2 != b2;
~~~~~~~~
!!! error TS2367: This condition will always return 'true' since the types 'new (a: number, b: string) => Base' and 'new (a: string) => Base' have no overlap.
var r6a3 = a3 != b3;
~~~~~~~~
!!! error TS2367: This condition will always return 'true' since the types 'new (a: Base, b: string) => Base' and 'new (a: Derived, b: Base) => Base' have no overlap.
var r6a4 = a4 != b4;
~~~~~~~~
!!! error TS2367: This condition will always return 'true' since the types 'new () => Base' and 'new () => C' have no overlap.
var r6a5 = a5 != b5;
~~~~~~~~
!!! error TS2367: This condition will always return 'true' since the types 'new (a?: Base) => Base' and 'new (a?: C) => Base' have no overlap.
var r6a6 = a6 != b6;
~~~~~~~~
!!! error TS2367: This condition will always return 'true' since the types 'new (...a: Base[]) => Base' and 'new (...a: C[]) => Base' have no overlap.
var r6a7 = a7 != b7;
var r6b1 = b1 != a1;
~~~~~~~~
!!! error TS2367: This condition will always return 'true' since the types 'new () => Base' and '{ fn(): Base; }' have no overlap.
var r6b2 = b2 != a2;
~~~~~~~~
!!! error TS2367: This condition will always return 'true' since the types 'new (a: string) => Base' and 'new (a: number, b: string) => Base' have no overlap.
var r6b3 = b3 != a3;
~~~~~~~~
!!! error TS2367: This condition will always return 'true' since the types 'new (a: Derived, b: Base) => Base' and 'new (a: Base, b: string) => Base' have no overlap.
var r6b4 = b4 != a4;
~~~~~~~~
!!! error TS2367: This condition will always return 'true' since the types 'new () => C' and 'new () => Base' have no overlap.
var r6b5 = b5 != a5;
~~~~~~~~
!!! error TS2367: This condition will always return 'true' since the types 'new (a?: C) => Base' and 'new (a?: Base) => Base' have no overlap.
var r6b6 = b6 != a6;
~~~~~~~~
!!! error TS2367: This condition will always return 'true' since the types 'new (...a: C[]) => Base' and 'new (...a: Base[]) => Base' have no overlap.
var r6b7 = b7 != a7;
// operator ===
var r7a1 = a1 === b1;
~~~~~~~~~
!!! error TS2367: This condition will always return 'false' since the types '{ fn(): Base; }' and 'new () => Base' have no overlap.
var r7a2 = a2 === b2;
~~~~~~~~~
!!! error TS2367: This condition will always return 'false' since the types 'new (a: number, b: string) => Base' and 'new (a: string) => Base' have no overlap.
var r7a3 = a3 === b3;
~~~~~~~~~
!!! error TS2367: This condition will always return 'false' since the types 'new (a: Base, b: string) => Base' and 'new (a: Derived, b: Base) => Base' have no overlap.
var r7a4 = a4 === b4;
~~~~~~~~~
!!! error TS2367: This condition will always return 'false' since the types 'new () => Base' and 'new () => C' have no overlap.
var r7a5 = a5 === b5;
~~~~~~~~~
!!! error TS2367: This condition will always return 'false' since the types 'new (a?: Base) => Base' and 'new (a?: C) => Base' have no overlap.
var r7a6 = a6 === b6;
~~~~~~~~~
!!! error TS2367: This condition will always return 'false' since the types 'new (...a: Base[]) => Base' and 'new (...a: C[]) => Base' have no overlap.
var r7a7 = a7 === b7;
var r7b1 = b1 === a1;
~~~~~~~~~
!!! error TS2367: This condition will always return 'false' since the types 'new () => Base' and '{ fn(): Base; }' have no overlap.
var r7b2 = b2 === a2;
~~~~~~~~~
!!! error TS2367: This condition will always return 'false' since the types 'new (a: string) => Base' and 'new (a: number, b: string) => Base' have no overlap.
var r7b3 = b3 === a3;
~~~~~~~~~
!!! error TS2367: This condition will always return 'false' since the types 'new (a: Derived, b: Base) => Base' and 'new (a: Base, b: string) => Base' have no overlap.
var r7b4 = b4 === a4;
~~~~~~~~~
!!! error TS2367: This condition will always return 'false' since the types 'new () => C' and 'new () => Base' have no overlap.
var r7b5 = b5 === a5;
~~~~~~~~~
!!! error TS2367: This condition will always return 'false' since the types 'new (a?: C) => Base' and 'new (a?: Base) => Base' have no overlap.
var r7b6 = b6 === a6;
~~~~~~~~~
!!! error TS2367: This condition will always return 'false' since the types 'new (...a: C[]) => Base' and 'new (...a: Base[]) => Base' have no overlap.
var r7b7 = b7 === a7;
// operator !==
var r8a1 = a1 !== b1;
~~~~~~~~~
!!! error TS2367: This condition will always return 'true' since the types '{ fn(): Base; }' and 'new () => Base' have no overlap.
var r8a2 = a2 !== b2;
~~~~~~~~~
!!! error TS2367: This condition will always return 'true' since the types 'new (a: number, b: string) => Base' and 'new (a: string) => Base' have no overlap.
var r8a3 = a3 !== b3;
~~~~~~~~~
!!! error TS2367: This condition will always return 'true' since the types 'new (a: Base, b: string) => Base' and 'new (a: Derived, b: Base) => Base' have no overlap.
var r8a4 = a4 !== b4;
~~~~~~~~~
!!! error TS2367: This condition will always return 'true' since the types 'new () => Base' and 'new () => C' have no overlap.
var r8a5 = a5 !== b5;
~~~~~~~~~
!!! error TS2367: This condition will always return 'true' since the types 'new (a?: Base) => Base' and 'new (a?: C) => Base' have no overlap.
var r8a6 = a6 !== b6;
~~~~~~~~~
!!! error TS2367: This condition will always return 'true' since the types 'new (...a: Base[]) => Base' and 'new (...a: C[]) => Base' have no overlap.
var r8a7 = a7 !== b7;
var r8b1 = b1 !== a1;
~~~~~~~~~
!!! error TS2367: This condition will always return 'true' since the types 'new () => Base' and '{ fn(): Base; }' have no overlap.
var r8b2 = b2 !== a2;
~~~~~~~~~
!!! error TS2367: This condition will always return 'true' since the types 'new (a: string) => Base' and 'new (a: number, b: string) => Base' have no overlap.
var r8b3 = b3 !== a3;
~~~~~~~~~
!!! error TS2367: This condition will always return 'true' since the types 'new (a: Derived, b: Base) => Base' and 'new (a: Base, b: string) => Base' have no overlap.
var r8b4 = b4 !== a4;
~~~~~~~~~
!!! error TS2367: This condition will always return 'true' since the types 'new () => C' and 'new () => Base' have no overlap.
var r8b5 = b5 !== a5;
~~~~~~~~~
!!! error TS2367: This condition will always return 'true' since the types 'new (a?: C) => Base' and 'new (a?: Base) => Base' have no overlap.
var r8b6 = b6 !== a6;
~~~~~~~~~
!!! error TS2367: This condition will always return 'true' since the types 'new (...a: C[]) => Base' and 'new (...a: Base[]) => Base' have no overlap.
var r8b7 = b7 !== a7;