mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-23 10:04:47 -05:00
Added test.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
interface Foo {
|
||||
bar: Bar | Bar[];
|
||||
}
|
||||
|
||||
interface Bar {
|
||||
prop: string;
|
||||
}
|
||||
|
||||
let x: Foo[] = [
|
||||
{ bar: { prop: 100 } }
|
||||
]
|
||||
Reference in New Issue
Block a user