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

pull/13200/head
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
1 changed files with 3 additions and 3 deletions

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