abstract class C { abstract fun f(a: A) } fun f() { class R object : C() { } }