mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 02:29:04 +03:00
b887b30092
**Description:** This is required for https://github.com/swc-project/swc/pull/6981 and https://github.com/swc-project/swc/pull/6950
18 lines
259 B
TypeScript
18 lines
259 B
TypeScript
// @strict: true
|
|
// @declaration: true
|
|
|
|
// Repro from #49480
|
|
|
|
export interface BarProps {
|
|
barProp?: string;
|
|
}
|
|
|
|
export interface FooProps {
|
|
fooProps?: BarProps & object;
|
|
}
|
|
|
|
declare const foo: FooProps;
|
|
const { fooProps = {} } = foo;
|
|
|
|
fooProps.barProp;
|