open class A(n: Int) fun foo() { val x = object : A(1) {} }