v/vlib/v/checker/tests/const_define_in_function_er...

7 lines
228 B
Plaintext

vlib/v/checker/tests/const_define_in_function_err.vv:2:2: error: const can only be defined at the top level (outside of functions)
1 | fn main() {
2 | const (a = 1)
| ~~~~~
3 | println(a)
4 | }