aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/comp/front/parser.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs
index 0e08a8bf..844bd97f 100644
--- a/src/comp/front/parser.rs
+++ b/src/comp/front/parser.rs
@@ -1103,6 +1103,12 @@ fn index_block(vec[@ast.stmt] stmts, option.t[@ast.expr] expr) -> ast.block_ {
case (ast.item_ty(?i, _, _, _, _)) {
index.insert(i, u-1u);
}
+ case (ast.item_tag(?i, _, _, _)) {
+ index.insert(i, u-1u);
+ }
+ case (ast.item_obj(?i, _, _, _, _)) {
+ index.insert(i, u-1u);
+ }
}
}
}