swc/crates/swc_ecma_parser/tests/tsc/independentPropertyVariance.ts

9 lines
183 B
TypeScript

// @strict: true
// 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;