mirror of
https://github.com/vlang/v.git
synced 2025-09-14 15:02:33 +03:00
make the new mut check work with fn foo(mut bar)
This commit is contained in:
parent
9ccd3bde01
commit
2ad0d0200d
2 changed files with 11 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue