dmd icon indicating copy to clipboard operation
dmd copied to clipboard

Implement `with(auto x = ...)`

Open thewilsonator opened this issue 3 weeks ago • 3 comments

thewilsonator avatar Dec 06 '25 03:12 thewilsonator

Thanks for your pull request and interest in making D better, @thewilsonator! We are looking forward to reviewing it, and you should be hearing from a maintainer soon. Please verify that your PR follows this checklist:

  • My PR is fully covered with tests (you can see the coverage diff by visiting the details link of the codecov check)
  • My PR is as minimal as possible (smaller, focused PRs are easier to review than big ones)
  • I have provided a detailed rationale explaining my changes
  • New or modified functions have Ddoc comments (with Params: and Returns:)

Please see CONTRIBUTING.md for more information.


If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment.

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + dmd#22196"

dlang-bot avatar Dec 06 '25 03:12 dlang-bot

Thank you for doing this!

dejlek avatar Dec 06 '25 12:12 dejlek

At https://buildkite.com/dlang/dmd/builds/44260/steps/canvas?sid=019afb40-c8cd-49d1-9a18-a711b8b866c0 seems to be a conflict with the syntax

tests/unit_threaded/ut/integration.d(24,20): Error: found `(` while expecting `=` or identifier
    with(immutable Sandbox()) {
                   ^

. The caret position seems to be off.

nordlow avatar Dec 08 '25 14:12 nordlow