mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ast, parser: fix reference typenode (#15346)
This commit is contained in:
@@ -607,6 +607,10 @@ fn (mut p Parser) prefix_expr() ast.Expr {
|
||||
right = right.expr
|
||||
}
|
||||
}
|
||||
if mut right is ast.TypeNode {
|
||||
right.typ = right.typ.ref()
|
||||
return right
|
||||
}
|
||||
}
|
||||
mut or_stmts := []ast.Stmt{}
|
||||
mut or_kind := ast.OrKind.absent
|
||||
|
||||
Reference in New Issue
Block a user