Merge K2 bytecodeListing tests to main bytecodeListing tests
This commit is contained in:
committed by
Space Team
parent
68dd89c593
commit
14c2030595
+11
@@ -0,0 +1,11 @@
|
||||
// MODULE: lib
|
||||
// FILE: 1.kt
|
||||
interface I {
|
||||
fun foo(x: (suspend () -> Unit)?): (suspend () -> Unit)?
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: 2.kt
|
||||
class C : I {
|
||||
override fun foo(x: (suspend () -> Unit)?) = x
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
Module: lib
|
||||
@kotlin.Metadata
|
||||
public interface I {
|
||||
// source: '1.kt'
|
||||
public abstract @org.jetbrains.annotations.Nullable method foo(@org.jetbrains.annotations.Nullable p0: kotlin.jvm.functions.Function1): kotlin.jvm.functions.Function1
|
||||
}
|
||||
Module: main
|
||||
@kotlin.Metadata
|
||||
public final class C {
|
||||
// source: '2.kt'
|
||||
public method <init>(): void
|
||||
public @org.jetbrains.annotations.Nullable method foo(@org.jetbrains.annotations.Nullable p0: kotlin.jvm.functions.Function1): kotlin.jvm.functions.Function1
|
||||
}
|
||||
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// IGNORE_BACKEND_K1: JVM_IR
|
||||
// !LANGUAGE: +ExplicitBackingFields
|
||||
// MODULE: ModuleA
|
||||
// FILE: AI.kt
|
||||
|
||||
public interface AI {
|
||||
val number: Number
|
||||
}
|
||||
|
||||
// FILE: AC.kt
|
||||
|
||||
public class AC : AI {
|
||||
final override val number: Number
|
||||
field = 4
|
||||
}
|
||||
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
@kotlin.Metadata
|
||||
public final class AC {
|
||||
// source: 'AC.kt'
|
||||
private final field number: int
|
||||
public method <init>(): void
|
||||
public final @org.jetbrains.annotations.NotNull method getNumber(): java.lang.Number
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public interface AI {
|
||||
// source: 'AI.kt'
|
||||
public abstract @org.jetbrains.annotations.NotNull method getNumber(): java.lang.Number
|
||||
}
|
||||
Reference in New Issue
Block a user