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
}