From ac8a7ac9012805ced023d39507e21a78ced1e5f4 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sun, 17 Jan 2021 06:30:30 +0100 Subject: [PATCH] parser: bootstrap the new struct init check --- vlib/v/parser/comptime.v | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vlib/v/parser/comptime.v b/vlib/v/parser/comptime.v index 26f4adf37b..17e42b2f5c 100644 --- a/vlib/v/parser/comptime.v +++ b/vlib/v/parser/comptime.v @@ -156,10 +156,12 @@ fn (mut p Parser) comp_call() ast.ComptimeCall { println('\n\n') } mut file := parse_comptime(v_code, p.table, p.pref, scope, p.global_scope) + /* file = ast.File{ ...file path: tmpl_path } + */ // copy vars from current fn scope into vweb_tmpl scope for stmt in file.stmts { if stmt is ast.FnDecl {