1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

make the new mut check work with fn foo(mut bar)

This commit is contained in:
Alexander Medvednikov
2019-07-25 13:59:00 +02:00
parent 9ccd3bde01
commit 2ad0d0200d
2 changed files with 11 additions and 2 deletions

View File

@ -92,7 +92,7 @@ mut:
fn test_mut_struct() {
mut user := User{18}
mod_struct(mut user)
mod_struct(mut user)
assert user.age == 19
}