open class A() { open val method : () -> Unit? = {println("hello")} } fun some() : A { return object : A() { override val method: () -> Unit? get() = super.method } } // TODO: need better selection and caret