parser: fix sizeof(&Foo)

pull/4350/head
Alexander Medvednikov 2020-04-11 18:38:25 +02:00
parent ea960b2ce2
commit d0ac69d12e
1 changed files with 0 additions and 4 deletions

View File

@ -778,9 +778,6 @@ pub fn (p mut Parser) expr(precedence int) ast.Expr {
.key_sizeof {
p.next() // sizeof
p.check(.lpar)
if p.tok.kind == .amp {
p.next()
}
if p.tok.lit == 'C' {
p.next()
p.check(.dot)
@ -1276,7 +1273,6 @@ fn (p mut Parser) string_expr() ast.Expr {
if p.tok.kind == .colon {
efmt << ':'
p.next()
// ${num:-2d}
if p.tok.kind == .minus {
efmt << '-'