v/vlib/v/checker/tests/mut_int.out

7 lines
286 B
Plaintext
Raw Normal View History

2021-03-26 14:02:30 +01:00
vlib/v/checker/tests/mut_int.vv:1:14: error: mutable arguments are only allowed for arrays, interfaces, maps, pointers, structs or their aliases
return values instead: `fn foo(mut n int) {` => `fn foo(n int) int {`
2020-06-03 10:45:19 +02:00
1 | fn foo(mut x int) {
| ~~~
2020-06-03 10:36:52 +02:00
2 | }
3 |