Files
tsgo/testdata/baselines/reference/submodule/conformance/independentPropertyVariance.js

16 lines
454 B
TypeScript

//// [tests/cases/conformance/types/typeRelationships/comparable/independentPropertyVariance.ts] ////
//// [independentPropertyVariance.ts]
// Verify that properties can vary independently in comparable relationship
declare const x: { a: 1, b: string };
declare const y: { a: number, b: 'a' };
x === y;
//// [independentPropertyVariance.js]
"use strict";
// Verify that properties can vary independently in comparable relationship
x === y;