Skip to content

Fix issue 23298 - simplify implicit string concatenation error message - #23819

Merged
thewilsonator merged 1 commit into
dlang:masterfrom
usefahmed07:fix-string-concat-msg-23298
Sep 9, 2026
Merged

Fix issue 23298 - simplify implicit string concatenation error message#23819
thewilsonator merged 1 commit into
dlang:masterfrom
usefahmed07:fix-string-concat-msg-23298

Conversation

@usefahmed07

Copy link
Copy Markdown
Contributor

Fixes #23298

The error message for implicit string concatenation read:

  Error: implicit string concatenation is error-prone and disallowed in D

This was originally a deprecation message that was never updated when
it became a hard error. The self-justifying phrasing ('error-prone')
and the language name ('in D') are inconsistent with how every other
diagnostic in the compiler is worded (e.g. 'identifier expected
following module', 'declaration expected, not ...').

Simplified to:

  Error: implicit string concatenation is disallowed

The supplemental hint suggesting the explicit ~ syntax is unchanged.
Updated the three affected fail_compilation tests to match.
@thewilsonator
thewilsonator merged commit 78758c7 into dlang:master Sep 9, 2026
42 of 43 checks passed
@usefahmed07
usefahmed07 deleted the fix-string-concat-msg-23298 branch September 9, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Do error messages really have to justify themselves?

3 participants