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 issue 16346 - Use the correct type when constructing an enum #6431

Merged
merged 1 commit into from
Jan 13, 2017
Merged

Fix issue 16346 - Use the correct type when constructing an enum #6431

merged 1 commit into from
Jan 13, 2017

Conversation

LemonBoy
Copy link
Contributor

No description provided.

@dlang-bot
Copy link
Contributor

Fix Bugzilla Description
16346 Enum used as a constructor evaluates to the underlying type, not to the enum type.

@MartinNowak MartinNowak merged commit 5607986 into dlang:master Jan 13, 2017
@@ -9866,6 +9866,14 @@ extern (C++) final class CallExp : UnaExp
else if (e1.op == TOKtype && t1.isscalar())
{
Expression e;

// Make sure to use the the enum type itself rather than its
// base type (see bugzilla 16346)
Copy link
Member

Choose a reason for hiding this comment

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

We started to use direct links to bugzilla.
https://issues.dlang.org/show_bug.cgi?id=16346

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.

3 participants