From 9f4431544df10756b82f81ceaf03efe36f2a7d1e Mon Sep 17 00:00:00 2001 From: yuyi Date: Wed, 28 Jul 2021 13:28:55 +0800 Subject: [PATCH] checker: fix typo in selector_expr() (#10977) --- vlib/v/checker/checker.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/checker/checker.v b/vlib/v/checker/checker.v index 5f3d5f90bf..3d953db15a 100644 --- a/vlib/v/checker/checker.v +++ b/vlib/v/checker/checker.v @@ -3423,7 +3423,7 @@ pub fn (mut c Checker) selector_expr(mut node ast.SelectorExpr) ast.Type { // look for embedded field has_field = true 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 != '' { c.error(err.msg, node.pos) }