mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: remove option from err var type
This commit is contained in:
parent
126ef0f5c2
commit
54c38e3e3a
@ -20,7 +20,7 @@ pub fn (p mut Parser) call_expr(is_c bool, mod string) ast.CallExpr {
|
||||
p.open_scope()
|
||||
p.scope.register_var(ast.Var{
|
||||
name: 'err'
|
||||
typ: table.type_to_optional(table.string_type)
|
||||
typ: table.string_type
|
||||
})
|
||||
or_stmts = p.parse_block_no_scope()
|
||||
p.close_scope()
|
||||
|
@ -961,7 +961,7 @@ fn (p mut Parser) dot_expr(left ast.Expr) ast.Expr {
|
||||
p.open_scope()
|
||||
p.scope.register_var(ast.Var{
|
||||
name: 'err'
|
||||
typ: table.type_to_optional(table.string_type)
|
||||
typ: table.string_type
|
||||
})
|
||||
or_stmts = p.parse_block_no_scope()
|
||||
p.close_scope()
|
||||
|
Loading…
Reference in New Issue
Block a user