TypeScript/tests/cases/compiler/objectLiteralsAgainstUnionsOfArrays01.ts
Daniel Rosenwasser bda32aeee2 Added test.
2018-07-17 21:52:24 -07:00

12 lines
118 B
TypeScript

interface Foo {
bar: Bar | Bar[];
}
interface Bar {
prop: string;
}
let x: Foo[] = [
{ bar: { prop: 100 } }
]