error[shadowing]: shadowing variable `x`
┌─ shadowing.lua:5:11
│
1 │ local x = 1
│ - previously defined here
·
5 │ local x = 3
│ ^
error[shadowing]: shadowing variable `x`
┌─ shadowing.lua:6:11
│
5 │ local x = 3
│ - previously defined here
6 │ local x = 4
│ ^
error[shadowing]: shadowing variable `foo`
┌─ shadowing.lua:16:20
│
14 │ local function foo() end
│ --- previously defined here
15 │ if true then
16 │ local function foo() end
│ ^^^