Tests: move more diagnostic tests to testsWithJvmBackend
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`.
This commit is contained in:
committed by
Space Team
parent
56a1a3153b
commit
d986e0ee9c
+22
@@ -0,0 +1,22 @@
|
||||
// WITH_STDLIB
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
// FILE: A.java
|
||||
|
||||
public class A {
|
||||
public static void foo() {}
|
||||
public static void baz(String s) {}
|
||||
}
|
||||
|
||||
// FILE: K.kt
|
||||
|
||||
open class K : A() {
|
||||
companion object {
|
||||
@JvmStatic
|
||||
<!ACCIDENTAL_OVERRIDE!>fun foo() {}<!>
|
||||
@JvmStatic
|
||||
fun foo(i: Int) {}
|
||||
@JvmStatic
|
||||
fun baz(i: Int) {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user