Skip to content

Fix literal enum struct initializers.#431

Merged
dvander merged 1 commit into
masterfrom
bug412
Dec 4, 2019
Merged

Fix literal enum struct initializers.#431
dvander merged 1 commit into
masterfrom
bug412

Conversation

@dvander
Copy link
Copy Markdown
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
Copy Markdown
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