Skip to content

Commit f561e79

Browse files
committed
Fix __annotation__
1 parent 5504f6d commit f561e79

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler/codegen/src/compile.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,10 @@ impl Compiler<'_> {
491491
) -> CompileResult<()> {
492492
self.symbol_table_stack.push(symbol_table);
493493

494+
if Self::find_ann(body) {
495+
emit!(self, Instruction::SetupAnnotation);
496+
}
497+
494498
if let Some((last, body)) = body.split_last() {
495499
for statement in body {
496500
if let Stmt::Expr(StmtExpr { value, .. }) = &statement {

0 commit comments

Comments
 (0)