Summary: Alias this does not work with switch
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Robert Clipsham <> 2012-04-24 
17:54:09 BST ---
struct A {
    int a;
    alias a this;
void main() {
    A t;
    switch(t) {

With dmd 2.059 this results in:
test.d(7): Error: 't' is not of integral type, it is a A

I believe the alias this should allow this to work.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to