parser: add PlusEqual and MinusEqual to Get expressions
This commit is contained in:
parent
8007f9e860
commit
a0808b54aa
2 changed files with 19 additions and 16 deletions
|
@ -54,9 +54,10 @@ fn main(a int) int {
|
|||
|
||||
str := 'hello'
|
||||
len := str.len
|
||||
|
||||
// those should yield the same ast
|
||||
str.len = str.len + 1
|
||||
x += 1
|
||||
// str.len += 1
|
||||
str.len += 1
|
||||
}
|
||||
|
||||
fn (v Typ) voidfunc() {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue