55f9f74d5c
In most affected tests, the backend diagnostic such as "conflicting JVM signature" or "accidental override" is directly caused by some already existing error reported by frontend, so it doesn't make sense to check backend diagnostics there. Tests where that was not the case were moved/copied to `testsWithJvmBackend`.
12 lines
380 B
Kotlin
Vendored
12 lines
380 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER -PARAMETER_NAME_CHANGED_ON_OVERRIDE
|
|
// FILE: A.java
|
|
abstract public class A implements java.util.Collection<String> {
|
|
public boolean contains(Object x) {return false;}
|
|
public boolean contains(String x) {return false;}
|
|
}
|
|
|
|
// FILE: main.kt
|
|
abstract class KA : A() {
|
|
override <!ACCIDENTAL_OVERRIDE!>fun contains(x: String) = false<!>
|
|
}
|