From bda32aeee2af866073c3b80272f4a53720ff1a51 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Tue, 17 Jul 2018 21:52:24 -0700 Subject: [PATCH] Added test. --- .../compiler/objectLiteralsAgainstUnionsOfArrays01.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/cases/compiler/objectLiteralsAgainstUnionsOfArrays01.ts diff --git a/tests/cases/compiler/objectLiteralsAgainstUnionsOfArrays01.ts b/tests/cases/compiler/objectLiteralsAgainstUnionsOfArrays01.ts new file mode 100644 index 00000000000..d09b6b114bf --- /dev/null +++ b/tests/cases/compiler/objectLiteralsAgainstUnionsOfArrays01.ts @@ -0,0 +1,11 @@ +interface Foo { + bar: Bar | Bar[]; +} + +interface Bar { + prop: string; +} + +let x: Foo[] = [ + { bar: { prop: 100 } } +]