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

Replace semantic with assert_no_errors in compiler specs whenever possible #11288

Merged
merged 2 commits into from Oct 24, 2021

Conversation

HertzDevil
Copy link
Contributor

The two helper methods are currently identical, but the latter expresses the intent more clearly when the result of the call is never used; most of the time, these specs contain a single call to semantic and nothing else.

All affected code literals also now use heredocs.

@straight-shoota
Copy link
Member

I presume most of them should also use inject_primitives: false. But that can be added in a follow-up.

Copy link
Member

@sdogruyol sdogruyol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @HertzDevil 🙏

@straight-shoota straight-shoota modified the milestones: 1.2.0, 1.3.0 Oct 11, 2021
@straight-shoota straight-shoota merged commit dfa28a4 into crystal-lang:master Oct 24, 2021
@HertzDevil HertzDevil deleted the spec/assert-no-errors branch October 25, 2021 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants