mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
12 lines
211 B
TypeScript
12 lines
211 B
TypeScript
// Correct
|
|
const [A, B] = [1, 2, 3];
|
|
export function foo(): number {
|
|
return A;
|
|
}
|
|
|
|
// Incorrect
|
|
const { c, d } = { c: 1, d: 2 };
|
|
const [ e ] = [4];
|
|
export { c, d, e }
|
|
|
|
export const { f, g } = { f: 5, g: 6 };
|