[Issue 17782] New: The identifier delimiter of a delimited string can not begin with '_'
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Sat Aug 26 20:18:44 PDT 2017
    
    
  
https://issues.dlang.org/show_bug.cgi?id=17782
          Issue ID: 17782
           Summary: The identifier delimiter of a delimited string can not
                    begin with '_'
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: nmtigor.wang at googlemail.com
The following code does not compile:
@safe unittest
{
    string str = q"_DLANG
123
_DLANG";
    assert( str == "123\n" );
}
Replacing "_DLANG" with "DLANG", it then compiles.
--
    
    
More information about the Digitalmars-d-bugs
mailing list