[Issue 14094] New: Using string import in map results in error message with __error
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Sat Jan 31 13:08:36 PST 2015
    
    
  
https://issues.dlang.org/show_bug.cgi?id=14094
          Issue ID: 14094
           Summary: Using string import in map results in error message
                    with __error
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody at puremagic.com
          Reporter: doob at me.com
I'm not sure if this is supposed to compile but the following will result a
compile error which includes "__error" in the error message:
import std.algorithm;
enum foo = ["foo"].map!((string e) => import(e));
The error message is:
main.d(2): Error: variable e cannot be read at compile time
main.d(2): Error: file name argument must be a string, not (__error)
--
    
    
More information about the Digitalmars-d-bugs
mailing list