void (String[] args) { abstract class Local { abstract void work(); } abstract class <error descr="Duplicate class: 'Local'">Local</error> { abstract void work(); } new Local() { @Override public void work() { } }; }