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

eval: ignore ast.Module (fixes v interpret file.v regression after 07cf6d9)

This commit is contained in:
Delyan Angelov
2022-01-02 09:39:18 +02:00
parent 9278d4ec19
commit 1521d08e84
2 changed files with 52 additions and 3 deletions

View File

@@ -140,6 +140,7 @@ pub fn (mut e Eval) register_symbol_stmts(stmts []ast.Stmt, mod string, file str
pub fn (mut e Eval) register_symbol(stmt ast.Stmt, mod string, file string) {
match stmt {
ast.Module {}
ast.FnDecl {
// this mess because c error
x := ast.Stmt(stmt)