--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: invalid.ts --- # Input ```ts class C { static { var a; var a; } } function f() {} ``` # Diagnostics ``` invalid.ts:4:7 lint/suspicious/noRedeclare ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Shouldn't redeclare 'a'. Consider to delete it or rename it. 2 │ static { 3 │ var a; > 4 │ var a; │ ^ 5 │ } 6 │ } i 'a' is defined here: 1 │ class C { 2 │ static { > 3 │ var a; │ ^ 4 │ var a; 5 │ } ``` ``` invalid.ts:8:15 lint/suspicious/noRedeclare ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Shouldn't redeclare 'T'. Consider to delete it or rename it. 6 │ } 7 │ > 8 │ function f() {} │ ^ 9 │ i 'T' is defined here: 6 │ } 7 │ > 8 │ function f() {} │ ^ 9 │ ```