diff --git a/vlib/v/parser/v_parser_test.v b/vlib/v/parser/v_parser_test.v index 1cd1e86527..70b69ad895 100644 --- a/vlib/v/parser/v_parser_test.v +++ b/vlib/v/parser/v_parser_test.v @@ -74,7 +74,9 @@ x := 10 5+7 8+4 ' - table := &ast.Table{} + table := &ast.Table{ + cur_fn: 0 + } vpref := &pref.Preferences{} gscope := &ast.Scope{ parent: 0 diff --git a/vlib/vweb/tests/vweb_test_server.v b/vlib/vweb/tests/vweb_test_server.v index 7782952591..f4bc61314f 100644 --- a/vlib/vweb/tests/vweb_test_server.v +++ b/vlib/vweb/tests/vweb_test_server.v @@ -30,13 +30,13 @@ fn main() { assert timeout > 0 go exit_after_timeout(timeout) // - mut app := &App{ + app := &App{ port: http_port timeout: timeout } eprintln('>> webserver: started on http://127.0.0.1:$app.port/ , with maximum runtime of $app.timeout milliseconds.') // vweb.run(mut app, http_port) - vweb.run(mut app, http_port) + vweb.run(app, http_port) } // pub fn (mut app App) init_server() {