Thread overview
[Issue 24705] Arguments of synchronized method are unintentionally treated as shared with -preview=nosharedaccess
Aug 16
Dlang Bot
Aug 16
Dlang Bot
August 16
https://issues.dlang.org/show_bug.cgi?id=24705

--- Comment #1 from Kazuki Komatsu <komatsu.kazuki.op@tut.jp> ---
The latest (nightly) compiler version I tried is shown below, and this version also outputs the same error.

```sh
$ dmd --version
DMD64 D Compiler v2.110.0-beta.1

Copyright (C) 1999-2024 by The D Language Foundation, All Rights Reserved
written by Walter Bright
```

--
August 16
https://issues.dlang.org/show_bug.cgi?id=24705

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@ntrel created dlang/dmd pull request #16788 "Fix Bugzilla 24705 - Arguments of synchronized method are wrongly sha…" fixing this issue:

- Fix Bugzilla 24705 - Arguments of synchronized method are wrongly shared with -preview=nosharedaccess

https://github.com/dlang/dmd/pull/16788

--
August 16
https://issues.dlang.org/show_bug.cgi?id=24705

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #16788 "Fix Bugzilla 24705 - Arguments of synchronized method are wrongly sha…" was merged into master:

- fc48f5130f19ff6a1f0bb79d81c8b1c4c0ee16a9 by Nick Treleaven:
  Fix Bugzilla 24705 - Arguments of synchronized method are wrongly shared with
-preview=nosharedaccess

https://github.com/dlang/dmd/pull/16788

--