Favorite bug?

Walter Bright newshound1 at digitalmars.com
Mon Jul 2 10:53:40 PDT 2007


BCS wrote:
> switch(n)
> {
> alias T!(1,2,3,4,5) Tp;
> foreach(int i, int j; Tp)
> {
>   case j: // fails: non const
>   case Tp[i]: // passes
>    break;
> }
> }

That one was fixed.



More information about the Digitalmars-d mailing list