mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
454 B
TypeScript
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;
|