mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
compiler/vlib: add error for no new vars in loop ("_,_") & remove "." from errors
This commit is contained in:

committed by
Alexander Medvednikov

parent
a124d1f0eb
commit
d4bae356ba
@ -62,7 +62,7 @@ struct B {
|
||||
mut:
|
||||
a A
|
||||
}
|
||||
.vrepl_temp.v:13:15: `c2` is immutable.
|
||||
.vrepl_temp.v:13:15: `c2` is immutable
|
||||
.vrepl_temp.v:16:12: cannot modify immutable field `e` (type `F`)
|
||||
declare the field with `mut:`
|
||||
struct F {
|
||||
|
Reference in New Issue
Block a user