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

Issue 13820 [deleted] #4618

Closed
wants to merge 1 commit into from
Closed

Issue 13820 [deleted] #4618

wants to merge 1 commit into from

Conversation

tramker
Copy link
Contributor

@tramker tramker commented Apr 26, 2015

https://issues.dlang.org/show_bug.cgi?id=13820

  • alias this resolve block mostly copy from Expression::toBoolean
  • added cast to case expressions. This auto-fixes some nonsensical error messages involving case variables and implicit cast

Please note, that current dmd implementation of case expressions doesn't follow the specification, which says: The case expressions must all evaluate to a constant value or array, or a runtime initialized const or immutable variable of integral type.

@tramker tramker closed this Apr 27, 2015
@tramker tramker changed the title Issue 13820 - switch and case expressions should support alias this types Issue 13820 [deleted] Apr 27, 2015
@tramker
Copy link
Contributor Author

tramker commented Apr 27, 2015

Sorry, I always forget you can't reopen PR after forced push.

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