checker: fix typo in selector_expr() (#10977)

pull/10984/head
yuyi 2021-07-28 13:28:55 +08:00 committed by GitHub
parent 64458c9308
commit 9f4431544d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -3423,7 +3423,7 @@ pub fn (mut c Checker) selector_expr(mut node ast.SelectorExpr) ast.Type {
// look for embedded field // look for embedded field
has_field = true has_field = true
mut embed_type := ast.Type(0) mut embed_type := ast.Type(0)
field, embed_type = c.table.find_field_from_embeds(sym, field_name) or { field, embed_type = c.table.find_field_from_embeds(gs, field_name) or {
if err.msg != '' { if err.msg != '' {
c.error(err.msg, node.pos) c.error(err.msg, node.pos)
} }