Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Dec 17, 2024
1 parent 6e1f1e3 commit ca99a72
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions vlib/v/checker/tests/globals/global_var_redeclare.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
vlib/v/checker/tests/globals/global_var_redeclare.vv:4:2: notice: the global variable named `foobar` already exists
2 |
3 | fn main() {
4 | foobar := 2
| ~~~~~~
5 | println(foobar)
6 | }
6 changes: 6 additions & 0 deletions vlib/v/checker/tests/globals/global_var_redeclare.vv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
__global foobar = 1

fn main() {
foobar := 2
println(foobar)
}

0 comments on commit ca99a72

Please sign in to comment.