v2 / vlib / v / checker / tests / static_vars_in_translated_mode.out
6 lines · 6 sloc · 312 bytes · 140c7ea88908d1a3ccaf69efac39a778bffd6f0a
Raw
1vlib/v/checker/tests/static_vars_in_translated_mode.vv:2:13: error: static variables are supported only in -translated mode, `unsafe{}` blocks, or in `@[unsafe] fn`
2 1 | fn counter() int {
3 2 | mut static icounter := 0
4 | ~~~~~~~~
5 3 | icounter++
6 4 | return icounter
7