[Issue 20557] New: Spec does not allow StringPostfix after DbehindelimitedString or TokenString while implementation does

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 2 15:23:14 UTC 2020


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 at puremagic.com
          Reporter: dkorpel at 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.

--


More information about the Digitalmars-d-bugs mailing list