www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16088] New: Parse error for import expression in statement

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

          Issue ID: 16088
           Summary: Parse error for import expression in statement
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: timon.gehr gmx.ch

DMD 2.071.0:

The following code causes a parse error.

void bar(string x){ }
auto foo(){ import("a.d").bar; }

This should parse.

--
May 28 2016