parser: allow `as` in consts
parent
9034b1fd08
commit
c8dcbcb649
|
@ -692,6 +692,11 @@ fn (p mut Parser) expression() string {
|
|||
}
|
||||
}
|
||||
}
|
||||
// `as` cast
|
||||
// TODO remove copypasta
|
||||
if p.tok == .key_as {
|
||||
return p.key_as(typ, ph)
|
||||
}
|
||||
return typ
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue