www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12810] New: PrimaryExpression grammar does not allow type

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 puremagic.com
          Reporter: briancschott 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

--
May 26 2014