Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
StunxFS committed Dec 25, 2023
1 parent 91797b4 commit c82c881
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rivet/src/parser/decls.ri
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ extend Parser {
is_mod_attr := self.tok.kind == .Hash && self.peek_tok.kind == .Bang;
attributes := self.parse_attributes(is_mod_attr);
if is_mod_attr {
return .Empty();
return .Empty(self.tok.pos);
}
is_public := self.is_public();
mut pos := self.tok.pos;
Expand Down
2 changes: 1 addition & 1 deletion lib/rivet/src/resolver/decls.ri
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ extend Resolver {
old_self_sym := self.self_sym;
old_self_sym_is_set := self.self_sym_is_set;
match decl {
.Empty(empty_pos) -> report.error("BUG: empty declaration found", empty_pos),
// .Empty(empty_pos) -> report.error("BUG: empty declaration found", empty_pos),
.ComptimeIf(mut comptime_if) -> {
mut ct_decls := ast.nodes_to_decls(
self.env.evalue_comptime_if(comptime_if)
Expand Down

0 comments on commit c82c881

Please sign in to comment.