// !JDK_KIND: MODIFIED_MOCK_JDK // !CHECK_TYPE interface A : MutableCollection { // Override of deprecated function could be marked as deprecated too override fun nonExistingMethod(x: String) = "" } fun foo(x: MutableCollection, y: Collection, z: A) { x.nonExistingMethod(1).checkType { _() } y.nonExistingMethod("") z.nonExistingMethod("") }