-
-
Notifications
You must be signed in to change notification settings - Fork 608
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initialization of @mustuse member variable causes spurious error #20583
Comments
The error happens because (this.inner = typeof(this.inner).init, this.inner.__ctor(n)); And the function that checks for |
thewilsonator
added a commit
to thewilsonator/dmd
that referenced
this issue
Dec 21, 2024
… spurious error
thewilsonator
added a commit
to thewilsonator/dmd
that referenced
this issue
Dec 21, 2024
… spurious error
thewilsonator
added a commit
to thewilsonator/dmd
that referenced
this issue
Dec 21, 2024
… spurious error
thewilsonator
added a commit
to thewilsonator/dmd
that referenced
this issue
Dec 21, 2024
… spurious error
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As of DMD 2.109.1, the following program fails to compile:
The error message is:
That is, the initialization of
this.inner
is incorrectly flagged as a violation of@mustuse
.The text was updated successfully, but these errors were encountered: