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

ast: fix typos in resolve_init() (#13191)

This commit is contained in:
yuyi 2022-01-17 17:00:57 +08:00 committed by GitHub
parent db48594bd4
commit 31615d67c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,11 +19,11 @@ pub fn resolve_init(node StructInit, typ Type, t &Table) Expr {
}
'cap' {
has_cap = true
len_expr = field.expr
cap_expr = field.expr
}
'default' {
'init' {
has_default = true
len_expr = field.expr
default_expr = field.expr
}
else {
exprs << field.expr