Assertion failure 2 synchronized this in 2 files
belka-ew opened this issue · comments
belka-ew commented
Consider two files:
a.d:
module a;
import std.datetime;
class A
{
public void f()
{
synchronized (this)
{
}
}
}
b.d:
module b;
class B
{
public void g()
{
synchronized (this)
{
}
}
}
Calling
./dlp infer-attributes a.d b.d
causes
Assertion failure
with dmd 2.094.1.
Jacob Carlborg commented
Are you using a pre-compiled release or have you compiled DLP from source?
It seems to work for me when I compile DLP from master.
Jacob Carlborg commented
This commit 2d788b5 might have fixed the problem.