FIR: use FIR_IDENTICAL instead of FIR_IGNORE for diags with BE tests

This commit is contained in:
Mikhail Glukhikh
2022-10-17 10:52:45 +02:00
committed by Space Team
parent d00af1c932
commit 69c883ecee
116 changed files with 383 additions and 80 deletions
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
interface Foo<X> {
fun foo(x: X)
@@ -0,0 +1,8 @@
open class B {
fun getX() = 1
}
class C : B() {
<!ACCIDENTAL_OVERRIDE!>val x: Int<!>
get() = 1
}
@@ -1,5 +1,3 @@
// IGNORE_FIR
open class B {
fun getX() = 1
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
open class B {
fun getX() = 1
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
open class B {
fun getX() = 1
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
open class B {
val x: Int
get() = 1
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// TARGET_BACKEND: JVM_IR
// !DIAGNOSTICS: -UNUSED_PARAMETER
@@ -0,0 +1,10 @@
// TARGET_BACKEND: JVM_IR
interface B {
fun getX() = 1
}
interface D {
<!ACCIDENTAL_OVERRIDE!>val x: Int<!>
}
class C(d: D) : D by d, B
@@ -1,4 +1,3 @@
// IGNORE_FIR
// TARGET_BACKEND: JVM_IR
interface B {
fun getX() = 1
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
open class B {
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// TARGET_BACKEND: JVM_IR
interface B {
fun getX() = 1
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
open class B {
private fun getX() = 1
}
@@ -0,0 +1,8 @@
interface T {
fun getX(): Int
}
abstract class C : T {
<!ACCIDENTAL_OVERRIDE!>val x: Int<!>
get() = 1
}
@@ -1,5 +1,3 @@
// IGNORE_FIR
interface T {
fun getX(): Int
}
@@ -0,0 +1,9 @@
// TARGET_BACKEND: JVM_IR
interface T {
fun getX() = 1
}
class C : T {
<!ACCIDENTAL_OVERRIDE!>val x: Int<!>
get() = 1
}
@@ -1,4 +1,3 @@
// IGNORE_FIR
// TARGET_BACKEND: JVM_IR
interface T {
fun getX() = 1
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
interface T {
val x: Int
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// TARGET_BACKEND: JVM_IR
interface T {
val x: Int