1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

cgen: fix array.last()

This commit is contained in:
Alexander Medvednikov
2020-03-19 08:49:47 +01:00
parent 3e70e5f2f1
commit 013fd5abfe
2 changed files with 5 additions and 2 deletions

View File

@@ -794,6 +794,7 @@ pub fn (p mut Parser) expr(precedence int) ast.Expr {
p.error('unknown variable `$name`')
return node
}
println('assoc var $name typ=$var.typ')
mut fields := []string
mut vals := []ast.Expr
p.check(.pipe)