Skip to content

Fix #23084 - Interpolated expression errors show 'filename-mixin-N' p…#23085

Merged
thewilsonator merged 1 commit intodlang:masterfrom
dkorpel:fix23084
May 7, 2026
Merged

Fix #23084 - Interpolated expression errors show 'filename-mixin-N' p…#23085
thewilsonator merged 1 commit intodlang:masterfrom
dkorpel:fix23084

Conversation

@dkorpel
Copy link
Copy Markdown
Contributor

@dkorpel dkorpel commented May 6, 2026

…seudo-location

Closes #23084

…-N' pseudo-location

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Comment thread compiler/src/dmd/tokens.d
}

extern(D) void appendInterpolatedPart(const(char)[] str)
extern(D) void appendInterpolatedPart(const(char)[] str, Loc loc)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

default argument of Loc.init?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude initially did that, but that made it forget to support other interpolated strings than i"". The DMD best practices also says:

  1. Avoid the use of default parameters. Spell them out.

@thewilsonator thewilsonator merged commit 058b64d into dlang:master May 7, 2026
41 of 42 checks passed
@dkorpel dkorpel deleted the fix23084 branch May 7, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Interpolated expression errors show 'filename-mixin-N' pseudo-location

2 participants