open class A fun foo() { val o = object : A() { } }