fix(compiler): reset scopes (#61)

This commit is contained in:
Xenxo Espasandín 2023-02-11 22:43:21 +01:00 committed by GitHub
parent 66d158bed8
commit 281cbb95f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,6 +123,7 @@ auto compiler::emit_decl_function(decl_function const& func) -> void
label_idx_ = 0;
can_break_ = false;
can_continue_ = false;
scopes_.clear();
stackframe_.clear();
break_blks_.clear();
continue_blks_.clear();