File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -158,6 +158,9 @@ namespace pl::core::ast {
158158 }
159159
160160 void applyTypeAttributes (Evaluator *evaluator, const ASTNode *node, const std::shared_ptr<ptrn::Pattern> &pattern) {
161+ if (std::uncaught_exceptions () > 0 )
162+ return ;
163+
161164 auto attributable = dynamic_cast <const Attributable *>(node);
162165 if (attributable == nullptr )
163166 err::E0008 .throwError (" Attributes cannot be applied to this statement." , {}, node->getLocation ());
@@ -369,6 +372,8 @@ namespace pl::core::ast {
369372 }
370373
371374 void applyVariableAttributes (Evaluator *evaluator, const ASTNode *node, const std::shared_ptr<ptrn::Pattern> &pattern) {
375+ if (std::uncaught_exceptions () > 0 )
376+ return ;
372377
373378 auto attributable = dynamic_cast <const Attributable *>(node);
374379 if (attributable == nullptr )
You can’t perform that action at this time.
0 commit comments