struct A {
int a;
alias a this;
}
void main() {
A t;
switch(t) {
default:
}
}
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.
Comment #1 by luis — 2015-09-30T02:39:41Z
I was bitten and surprised by this bug... Any plans to fix this?