TypeScript/tests/cases/compiler/unknownPropertiesAreAssignableToObjectUnion.ts

4 lines
104 B
TypeScript
Raw Normal View History

// @strictNullChecks: true
const x: Object | string = { x: 0 };
const y: Object | undefined = { x: 0 };