www.digitalmars.com         C & C++   DMDScript  

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

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

          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:
```
DelimitedString:
    q" Delimiter WysiwygCharacters MatchingDelimiter "

TokenString:
    q{ Tokens }
```

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

--
Feb 02 2020