/**---
char c = ')';
---*/
void main() {}
DMD: "Warning: Ddoc: Stray ')'. This may cause incorrect Ddoc output. Use $(RPAREN) instead for unpaired right parentheses."
Me: "But it is a code example!? Well then ..."
/**---
char c = '$(RPAREN)';
---*/
void main() {}
Me: "But stop warning me now, ok?"
DMD: "Error: unterminated character constant"
Me: ":-( sarcasm is the dark side of humor, DMD"
Comment #1 by razvan.nitu1305 — 2022-10-13T07:35:21Z
Works for me when I use the `-D`. No warning and the output is fine.