CaseStatement specification issue
Daniel Murphy via Digitalmars-d
digitalmars-d at puremagic.com
Thu Aug 14 06:32:34 PDT 2014
"Sergey Kozyr" wrote in message
news:khaugqemvygmsaaeyild at forum.dlang.org...
> case 1:
> case 2:
> return true;
> case 3:
> return false;
>
> After "case 1:" we see no statement at all. This conflicts with
> "CaseStatement" rule of documentation. But this is right D code.
> I think language reference must be updated.
"case 2:" is a CaseStatement and it's after "case 1:"
More information about the Digitalmars-d
mailing list