=== tests/cases/compiler/destructuringAssignmentWithExportedName.ts ===
export let exportedFoo: any;
>exportedFoo : any

let nonexportedFoo: any;
>nonexportedFoo : any

// sanity checks
exportedFoo = null;
>exportedFoo = null : null
>exportedFoo : any
>null : null

nonexportedFoo = null;
>nonexportedFoo = null : null
>nonexportedFoo : any
>null : null

if (null as any) {
>null as any : any
>null : null

    ({ exportedFoo, nonexportedFoo } = null as any);
>({ exportedFoo, nonexportedFoo } = null as any) : any
>{ exportedFoo, nonexportedFoo } = null as any : any
>{ exportedFoo, nonexportedFoo } : { exportedFoo: any; nonexportedFoo: any; }
>exportedFoo : any
>nonexportedFoo : any
>null as any : any
>null : null
}
else if (null as any) {
>null as any : any
>null : null

	({ foo: exportedFoo, bar: nonexportedFoo } = null as any);
>({ foo: exportedFoo, bar: nonexportedFoo } = null as any) : any
>{ foo: exportedFoo, bar: nonexportedFoo } = null as any : any
>{ foo: exportedFoo, bar: nonexportedFoo } : { foo: any; bar: any; }
>foo : any
>exportedFoo : any
>bar : any
>nonexportedFoo : any
>null as any : any
>null : null
}
else if (null as any) {
>null as any : any
>null : null

	({ foo: { bar: exportedFoo, baz: nonexportedFoo } } = null as any);
>({ foo: { bar: exportedFoo, baz: nonexportedFoo } } = null as any) : any
>{ foo: { bar: exportedFoo, baz: nonexportedFoo } } = null as any : any
>{ foo: { bar: exportedFoo, baz: nonexportedFoo } } : { foo: { bar: any; baz: any; }; }
>foo : { bar: any; baz: any; }
>{ bar: exportedFoo, baz: nonexportedFoo } : { bar: any; baz: any; }
>bar : any
>exportedFoo : any
>baz : any
>nonexportedFoo : any
>null as any : any
>null : null
}
else if (null as any) {
>null as any : any
>null : null

	([exportedFoo, nonexportedFoo] = null as any);
>([exportedFoo, nonexportedFoo] = null as any) : any
>[exportedFoo, nonexportedFoo] = null as any : any
>[exportedFoo, nonexportedFoo] : [any, any]
>exportedFoo : any
>nonexportedFoo : any
>null as any : any
>null : null
}
else {
	([[exportedFoo, nonexportedFoo]] = null as any);
>([[exportedFoo, nonexportedFoo]] = null as any) : any
>[[exportedFoo, nonexportedFoo]] = null as any : any
>[[exportedFoo, nonexportedFoo]] : [[any, any]]
>[exportedFoo, nonexportedFoo] : [any, any]
>exportedFoo : any
>nonexportedFoo : any
>null as any : any
>null : null
}

export { nonexportedFoo };
>nonexportedFoo : any

export { exportedFoo as foo, nonexportedFoo as nfoo };
>exportedFoo : any
>foo : any
>nonexportedFoo : any
>nfoo : any

