Remove obsolete directives in diagnostic backend tests

This commit is contained in:
Alexander Udalov
2023-06-22 21:47:14 +02:00
committed by Space Team
parent 6f2bb8c05a
commit dd3bebb690
49 changed files with 22 additions and 57 deletions
@@ -1,5 +1,4 @@
// FIR_IDENTICAL
// TARGET_BACKEND: JVM_IR
// !DIAGNOSTICS: -UNUSED_PARAMETER
open class Base {
@@ -1,4 +1,3 @@
// TARGET_BACKEND: JVM_IR
interface B {
fun getX() = 1
}
@@ -1,4 +1,3 @@
// TARGET_BACKEND: JVM_IR
interface B {
fun getX() = 1
}
@@ -1,5 +1,4 @@
// FIR_IDENTICAL
// TARGET_BACKEND: JVM_IR
interface B {
fun getX() = 1
}
@@ -1,4 +1,3 @@
// TARGET_BACKEND: JVM_IR
interface T {
fun getX() = 1
}
@@ -1,4 +1,3 @@
// TARGET_BACKEND: JVM_IR
interface T {
fun getX() = 1
}
@@ -1,5 +1,5 @@
// FIR_IDENTICAL
// TARGET_BACKEND: JVM_IR
interface T {
val x: Int
get() = 1
@@ -7,4 +7,4 @@ interface T {
class C : T {
<!ACCIDENTAL_OVERRIDE!>fun getX()<!> = 1
}
}
@@ -1,6 +1,5 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
// TARGET_BACKEND: JVM_IR
open class B<T> {
open fun foo(t: T) {}
@@ -1,6 +1,5 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
// TARGET_BACKEND: JVM_IR
interface B<T> {
fun foo(t: T) {}
@@ -1,6 +1,5 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
// TARGET_BACKEND: JVM_IR
interface B<T> {
fun foo(t: T) {}
@@ -1,6 +1,5 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
// TARGET_BACKEND: JVM_IR
public open class A<T> {
fun foo(x: T) = "O"
@@ -1,6 +1,5 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
// TARGET_BACKEND: JVM_IR
interface Foo<T> {
fun foo(l: List<T>) {}
@@ -1,6 +1,5 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
// TARGET_BACKEND: JVM_IR
interface A<T> {
fun foo(l: List<T>)
@@ -1,6 +1,5 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
// TARGET_BACKEND: JVM_IR
interface Foo<T> {
fun foo(l: List<T>) {}
@@ -1,6 +1,5 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
// TARGET_BACKEND: JVM_IR
// KT-7174 Report error on members with the same signature as non-overridable methods from mapped Java types (like Object.wait/notify)
@@ -1,5 +1,3 @@
// TARGET_BACKEND: JVM_IR
interface T {
<!CONFLICTING_JVM_DECLARATIONS!>val x: Int<!>
get() = 1
@@ -1,5 +1,3 @@
// TARGET_BACKEND: JVM_IR
interface T {
val x: Int
<!CONFLICTING_JVM_DECLARATIONS!>get()<!> = 1
@@ -1,5 +1,4 @@
// WITH_STDLIB
// TARGET_BACKEND: JVM_IR
@JvmInline
value class A<!CONFLICTING_JVM_DECLARATIONS!>(val x: Int)<!> {
@@ -1,5 +1,4 @@
// WITH_STDLIB
// TARGET_BACKEND: JVM_IR
@JvmInline
value class <!CONFLICTING_JVM_DECLARATIONS!>A(val x: Int)<!> {
@@ -1,5 +1,4 @@
// FIR_IDENTICAL
// TARGET_BACKEND: JVM_IR
class C {
companion <!REDECLARATION!>object<!> {}
@@ -1,5 +1,4 @@
// FIR_IDENTICAL
// TARGET_BACKEND: JVM_IR
class B {
companion object <!REDECLARATION!>A<!> {
@@ -1,5 +1,4 @@
// FIR_IDENTICAL
// TARGET_BACKEND: JVM_IR
// !DIAGNOSTICS: -UNUSED_PARAMETER
class C {
@@ -1,5 +1,4 @@
// FIR_IDENTICAL
// TARGET_BACKEND: JVM_IR
interface Foo
@@ -1,6 +1,5 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
// TARGET_BACKEND: JVM_IR
class C {
inner class D {
@@ -1,5 +1,4 @@
// FIR_IDENTICAL
// TARGET_BACKEND: JVM_IR
object O {
val INSTANCE: O = null!!
@@ -1,6 +1,5 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
// TARGET_BACKEND: JVM_IR
import kotlin.reflect.KProperty
@@ -1,5 +1,5 @@
// FIR_IDENTICAL
// TARGET_BACKEND: JVM_IR
interface Base1 {
fun getX(): Int
}
@@ -9,4 +9,4 @@ interface Base2 {
get() = 1
}
interface <!CONFLICTING_INHERITED_JVM_DECLARATIONS!>Test<!> : Base1, Base2
interface <!CONFLICTING_INHERITED_JVM_DECLARATIONS!>Test<!> : Base1, Base2
@@ -1,9 +1,9 @@
// FIR_IDENTICAL
// TARGET_BACKEND: JVM_IR
interface T {
fun getX() = 1
}
class C : T {
<!ACCIDENTAL_OVERRIDE!>val x<!> = 1
}
}
@@ -1,5 +1,3 @@
// TARGET_BACKEND: JVM_IR
interface T {
fun getX() = 1
}
@@ -1,5 +1,3 @@
// TARGET_BACKEND: JVM_IR
interface T {
fun getX() = 1
}
@@ -1,5 +1,4 @@
// FIR_IDENTICAL
// TARGET_BACKEND: JVM_IR
interface T {
val x: Int
@@ -1,5 +1,4 @@
// FIR_IDENTICAL
// TARGET_BACKEND: JVM_IR
interface T1 {
fun getX() = 1
@@ -1,6 +1,5 @@
// !LANGUAGE: +ValueClasses
// WITH_STDLIB
// TARGET_BACKEND: JVM_IR
@JvmInline
value class A(val x: Int, val y: Int) {
@@ -1,6 +1,5 @@
// !LANGUAGE: +ValueClasses
// WITH_STDLIB
// TARGET_BACKEND: JVM_IR
@JvmInline
value class A(val x: Int, val y: Int) {