swc/crates/swc_ecma_lints/tests
pshu c9c971a792
feat(es/lints): Detect duplicate bindings in export defaults (#8760)
**Description:**
add DefaultDecl's FnExpr and ClassExpr's ident to bindings. 
because all of them should be treated as hoisted Fn/Class Declare

```txt
  × the name `x` is defined multiple times
   ╭─[examples/all.js:1:1]
 1 │ export default class x{}
   ·                      ┬
   ·                      ╰── previous definition of `x` here
 2 │
 3 │ let x = 1;
   ·     ┬
   ·     ╰── `x` redefined here
 4 │ let t = function x(){};
   ╰────
```



**Related issue:**

 - Closes #8755
2024-03-19 14:39:06 +09:00
..
pass feat(es/lints): Detect duplicate bindings in export defaults (#8760) 2024-03-19 14:39:06 +09:00
fixture.rs build(cargo): Update rustc to nightly-2023-03-20 (#7170) 2023-03-30 08:06:02 +00:00