mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-03 23:02:27 +00:00
compiler: support shadowing via Block statements
This commit is contained in:
parent
40bacc6775
commit
26cfae7c9a
2 changed files with 11 additions and 0 deletions
|
@ -81,4 +81,5 @@ func TestShadow(t *testing.T) {
|
|||
t.Run("For", runCase("for i := 0; i < 1; i++ {"))
|
||||
t.Run("Range", runCase("for range []int{1} {"))
|
||||
t.Run("Switch", runCase("switch true {\ncase false: x += 2\ncase true:"))
|
||||
t.Run("Block", runCase("{"))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue