https://issues.dlang.org/show_bug.cgi?id=22626
Issue ID: 22626
Summary: Can't use synchronized member functions with
-nosharedaccess
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
-----
class Oops {
synchronized void oops() {}
}
-----
% dmd -o- -preview=nosharedaccess d.d
d.d(2): Error: direct access to shared `this` is not allowed, see `core.atomic`
--
