www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20557] New: Spec does not allow StringPostfix after


          Issue ID: 20557
           Summary: Spec does not allow StringPostfix after
                    DbehindelimitedString or TokenString while
                    implementation does
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: spec
          Severity: minor
          Priority: P1
         Component: dlang.org
          Assignee: nobody puremagic.com
          Reporter: dkorpel live.nl

This compiles:
wstring a = q{test}w;
wstring b = q"!test!"w;

But the spec says:
    q" Delimiter WysiwygCharacters MatchingDelimiter "

    q{ Tokens }

There is no StringPostfix_opt behind them so it does not allow the 'w' postfix.

Feb 02 2020