v2 / vlib / v / checker / tests / run / unused_variable_warning.vv
6 lines · 6 sloc · 136 bytes · 0801f88d0ac149af0121c942d169389d18c36c35
Raw
1// NB: this test should compile and run, but it also should produce a compiler warning.
2fn main() {
3 a := 1
4 b := 2
5 println('hello')
6}
7