[TEST] Migrate AbstractDiagnosticsWithModifiedMockJdkTest to new test runners
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
// !JDK_KIND: MODIFIED_MOCK_JDK
|
||||
// !CHECK_TYPE
|
||||
|
||||
interface A : MutableCollection<String> {
|
||||
// Override of deprecated function could be marked as deprecated too
|
||||
override fun nonExistingMethod(x: String) = ""
|
||||
}
|
||||
|
||||
fun foo(x: MutableCollection<Int>, y: Collection<String>, z: A) {
|
||||
x.<!DEPRECATION!>nonExistingMethod<!>(1).checkType { _<String>() }
|
||||
y.<!DEPRECATION!>nonExistingMethod<!>("")
|
||||
z.<!DEPRECATION!>nonExistingMethod<!>("")
|
||||
}
|
||||
Reference in New Issue
Block a user