d986e0ee9c
In this commit, tests where backend diagnostics were reported correctly are being moved. FirScopeDumpHandler was added to FIR diagnostic tests with JVM backend to support `SCOPE_DUMP` in `overridesBuiltinNoMagic.kt` and `charAtAndOverload.kt`.
38 lines
629 B
Kotlin
Vendored
38 lines
629 B
Kotlin
Vendored
// WITH_STDLIB
|
|
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
// FILE: A.java
|
|
|
|
public class A {
|
|
public static void foo() {}
|
|
public static void baz(String s) {}
|
|
}
|
|
|
|
// FILE: B.kt
|
|
|
|
open class B : A() {
|
|
}
|
|
|
|
// FILE: C.java
|
|
|
|
public class C extends B {
|
|
public static void bar(int i) {}
|
|
}
|
|
|
|
// FILE: K.kt
|
|
|
|
open class K : C() {
|
|
companion object {
|
|
<!ACCIDENTAL_OVERRIDE!>@JvmStatic
|
|
fun foo() {}<!>
|
|
@JvmStatic
|
|
fun foo(a: Any) {}
|
|
<!ACCIDENTAL_OVERRIDE!>@JvmStatic
|
|
fun bar(i: Int) {}<!>
|
|
@JvmStatic
|
|
fun bar(i: String) {}
|
|
@JvmStatic
|
|
fun baz(i: Int) {}
|
|
}
|
|
}
|