Bug 20557 – Spec does not allow StringPostfix after DelimitedString or TokenString while implementation does
Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P1
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-02-02T15:23:14Z
Last change time
2021-07-10T20:01:08Z
Keywords
pull, spec
Assigned to
No Owner
Creator
Dennis
Comments
Comment #0 by dkorpel — 2020-02-02T15:23:14Z
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.
Comment #1 by dlang-bot — 2021-07-10T19:03:04Z
@dkorpel created dlang/dlang.org pull request #3061 "Fix issue 20557 - add StringPostfix after DelimitedString and TokenString" fixing this issue:
- fix issue 20557 - add StringPostfix after DelimitedString and TokenString
The spec does not allow StringPostfix after DelimitedString or TokenString while implementation does
https://github.com/dlang/dlang.org/pull/3061
Comment #2 by dlang-bot — 2021-07-10T20:01:08Z
dlang/dlang.org pull request #3061 "Fix issue 20557 - add StringPostfix after DelimitedString and TokenString" was merged into master:
- 08e5c19fd5cceeb3c75934d810df924862edfe83 by dkorpel:
fix issue 20557 - add StringPostfix after DelimitedString and TokenString
The spec does not allow StringPostfix after DelimitedString or TokenString while implementation does
https://github.com/dlang/dlang.org/pull/3061