https://issues.dlang.org/show_bug.cgi?id=21062 --- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> --- So apparently I forgot synchronized is a statement, but the compiler should emit a better diagnostic. I'll rename the issue. --