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

Johan Engelen <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Johan Engelen <[email protected]> ---
Another effect of the missing semantic on _d_monitorenter/exit is that this
code compiles while I think it shouldn't (_d_monitorenter/exit will write to
klass.__monitor):

void foo() {
    immutable Klass klass = new Klass;
    synchronized (klass)
    {
        // do smth
    }
}

--

Reply via email to