Skip to content

Commit

Permalink
Revert "Add assert"
Browse files Browse the repository at this point in the history
This reverts commit 22e6132.
  • Loading branch information
SeanTAllen committed Jan 19, 2025
1 parent 22e6132 commit 01d24a5
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/libponyc/type/matchtype.c
Original file line number Diff line number Diff line change
Expand Up @@ -596,15 +596,7 @@ static matchtype_t is_nominal_match_entity(ast_t* operand, ast_t* pattern,
ast_error_frame(errorf, o_cap,
"this would be possible if the subcap were more ephemeral. "
"Perhaps you meant to consume this variable");
}
else
{
// While working on fixing issue 4579, Joe and I became convinced that
// any code that ends up going down this path is buggy and we should
// assert. It is possible that we are wrong, but nothing in the ponyc
// test suite ends up here at the time we added the assert.
pony_assert(0);
}
}

return MATCHTYPE_DENY_CAP;
}
Expand Down

0 comments on commit 01d24a5

Please sign in to comment.