Skip to content

use ErrorStatment.get() instead of new ErrorStatement - #23466

Merged
thewilsonator merged 1 commit into
dlang:masterfrom
thewilsonator:error-statment
Jul 29, 2026
Merged

use ErrorStatment.get() instead of new ErrorStatement#23466
thewilsonator merged 1 commit into
dlang:masterfrom
thewilsonator:error-statment

Conversation

@thewilsonator

Copy link
Copy Markdown
Contributor

No description provided.

@rainers rainers left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The get-method is fine, but if you want to help reduce the diff for dmd as a library, you could pass the original statement to get so it can be saved for inspection later, see also #23467 (comment)

Comment thread compiler/src/dmd/statement.d
Comment thread compiler/src/dmd/statement.d Outdated
@thewilsonator
thewilsonator force-pushed the error-statment branch 2 times, most recently from 8db7b5e to 2dd62b2 Compare July 28, 2026 23:51
@thewilsonator
thewilsonator merged commit 1fa0b3c into dlang:master Jul 29, 2026
40 of 42 checks passed
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.

2 participants