[Issue 24269] Members inside synchronized method should be only tail shared

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Dec 3 21:23:09 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=24269

--- Comment #1 from Nick Treleaven <nick at geany.org> ---
class C
{
    int i;
    synchronized void bar() {
        pragma(msg, typeof(i)); // shared(int)
    }
}

The pragma should print `int`.

--


More information about the Digitalmars-d-bugs mailing list