mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
10 lines
229 B
TypeScript
10 lines
229 B
TypeScript
// fixes #12200
|
|
function f() {
|
|
let n: number = 12;
|
|
let m: number = 13;
|
|
let a: any = null;
|
|
const o1 = { ...{}, [n]: n };
|
|
const o2 = { ...{}, [a]: n };
|
|
const o3 = { [a]: n, ...{}, [n]: n, ...{}, [m]: m };
|
|
}
|