parser: add PlusEqual and MinusEqual to Get expressions

This commit is contained in:
Luna 2019-08-27 11:29:17 -03:00
parent 8007f9e860
commit a0808b54aa
2 changed files with 19 additions and 16 deletions

View file

@ -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() {}