[Issue 12810] New: PrimaryExpression grammar does not allow type constructors

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon May 26 22:58:48 PDT 2014


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

          Issue ID: 12810
           Summary: PrimaryExpression grammar does not allow type
                    constructors
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: websites
          Assignee: nobody at puremagic.com
          Reporter: briancschott at gmail.com

Simple example:
---
int a = immutable(int).init;
---

The grammar has a rule for
---
int a = int.init;
---

which is

PrimaryExpression:
    BasicTypeX . Identifier

but it does not have

    TypeCtor(BasicType) . Identifier

--


More information about the Digitalmars-d-bugs mailing list