v2 / vlib / v / checker / tests / run / unused_variable_warning.run.out
15 lines · 15 sloc · 488 bytes · 0801f88d0ac149af0121c942d169389d18c36c35
Raw
1vlib/v/checker/tests/run/unused_variable_warning.vv:3:2: warning: unused variable: `a`
2 1 | // NB: this test should compile and run, but it also should produce a compiler warning.
3 2 | fn main() {
4 3 | a := 1
5 | ^
6 4 | b := 2
7 5 | println('hello')
8vlib/v/checker/tests/run/unused_variable_warning.vv:4:2: warning: unused variable: `b`
9 2 | fn main() {
10 3 | a := 1
11 4 | b := 2
12 | ^
13 5 | println('hello')
14 6 | }
15hello
16