diff --git a/src/analysis.cpp b/src/analysis.cpp index c3ccc0d..c214cc1 100644 --- a/src/analysis.cpp +++ b/src/analysis.cpp @@ -361,7 +361,8 @@ AnalysisResult analyze(Node &ast, Memory &memory) { memory.declare(function_name, type); - Function fn = { {}, memory.make_closure() }; + Node empty_node = {}; + Function fn = { empty_node, memory.make_closure() }; memory.update(function_name, fn);