Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: prevent throw throw being generated. #415

Merged
merged 1 commit into from
May 9, 2023

Conversation

TimothyMakkison
Copy link
Collaborator

@TimothyMakkison TimothyMakkison commented May 8, 2023

Fix bug where throw throw is generated.

Description

When UserDefinedNewInstanceMethodMapping cannot create an instance it generates an invalid throw throw statement. By replacing the enclosing ThrowStatement a normal throw statement is generated.

@latonz latonz enabled auto-merge (squash) May 9, 2023 06:57
@latonz latonz merged commit 3c41c84 into riok:main May 9, 2023
12 checks passed
@latonz latonz added this to the v2.9.0 milestone Jun 14, 2023
@github-actions
Copy link

github-actions bot commented Aug 7, 2023

🎉 This PR is included in version 3.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants