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 literal enum struct initializers. #431

Merged
merged 1 commit into from
Dec 4, 2019
Merged

Fix literal enum struct initializers. #431

merged 1 commit into from
Dec 4, 2019

Conversation

dvander
Copy link
Member

@dvander dvander commented Dec 3, 2019

The root of this issue was incorrectly using the dim.array.length field
of enum field symbols. Additionally, this patch adds some new
restrictions. Braces are no longer allowed around string literals since
braces in initializers have semantic meaning.

Bug: issue #412
Test: tests/enum-structs/initializer

The root of this issue was incorrectly using the dim.array.length field
of enum field symbols. Additionally, this patch adds some new
restrictions. Braces are no longer allowed around string literals since
braces in initializers have semantic meaning.

Bug: issue #412
Test: tests/enum-structs/initializer
@dvander dvander merged commit e11de1e into master Dec 4, 2019
@dvander dvander deleted the bug412 branch December 4, 2019 02:49
@JoinedSenses
Copy link
Contributor

thank you!

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.

2 participants