Skip to content

Commit 892e870

Browse files
committed
eval: handle ast.Block
1 parent 134cf90 commit 892e870

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎vlib/v/eval/eval.v‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,9 @@ pub fn (mut e Eval) register_symbol(stmt ast.Stmt, mod string, file string) {
285285
e.future_register_consts[mod][file][field.name] = field
286286
}
287287
}
288+
ast.Block {
289+
e.register_symbol_stmts(stmt.stmts, mod, file)
290+
}
288291
ast.ExprStmt {
289292
x := stmt.expr
290293
match x {

0 commit comments

Comments
 (0)