K2: add & fix tests for JVM BE diagnostics
This commit is contained in:
committed by
Space Team
parent
185e74fd26
commit
1826d9b332
+2
@@ -1,3 +1,5 @@
|
||||
// IGNORE_FIR
|
||||
|
||||
open class B {
|
||||
fun getX() = 1
|
||||
}
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// IGNORE_FIR
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
interface B {
|
||||
fun getX() = 1
|
||||
|
||||
-8
@@ -1,8 +0,0 @@
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
interface B {
|
||||
fun getX() = 1
|
||||
}
|
||||
|
||||
class C : B {
|
||||
<!ACCIDENTAL_OVERRIDE!><!NOTHING_TO_OVERRIDE!>override<!> val x<!> = 1
|
||||
}
|
||||
-17
@@ -1,17 +0,0 @@
|
||||
package
|
||||
|
||||
public interface B {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open fun getX(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final class C : B {
|
||||
public constructor C()
|
||||
public open val x: kotlin.Int = 1
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun getX(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// IGNORE_FIR
|
||||
|
||||
interface T {
|
||||
fun getX(): Int
|
||||
}
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// IGNORE_FIR
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
interface T {
|
||||
fun getX() = 1
|
||||
|
||||
Reference in New Issue
Block a user