JVM: enable -Xlambdas=class for some backend tests
These tests are checking the specifics of the class-generated lambdas.
This commit is contained in:
committed by
Space Team
parent
834ba397ad
commit
d757847ed6
@@ -1,3 +1,5 @@
|
||||
// LAMBDAS: CLASS
|
||||
|
||||
data class A(val x: String, val y: Int)
|
||||
|
||||
fun foo(a: A, block: (A) -> String): String = block(a)
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// LAMBDAS: CLASS
|
||||
|
||||
public fun <T> Iterable<T>.myforEach(operation: (T) -> Unit) : Unit {
|
||||
for (element in this) operation(element)
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// LAMBDAS: CLASS
|
||||
|
||||
fun foo() {
|
||||
fun bar() : (Int) -> Unit {
|
||||
return {
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// LAMBDAS: CLASS
|
||||
|
||||
fun foo() {
|
||||
var a = {
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// LAMBDAS: CLASS
|
||||
|
||||
operator fun (() -> String).getValue(thisRef: Any?, property: Any?) = this()
|
||||
|
||||
fun foo() {
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// LAMBDAS: CLASS
|
||||
|
||||
data class A(val x: Double = 1.0, val y: String = "", val z: Char = '0')
|
||||
|
||||
fun foo(a: A, block: (A, String, Int) -> String): String = block(a, "", 1)
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
$TESTDATA_DIR$/syntheticAccessorForPropertiesSignatureClash.kt
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
-Xlambdas=class
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
$TESTDATA_DIR$/syntheticAccessorPropertyAndFunSignatureClash.kt
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
-Xlambdas=class
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
// IGNORE_BACKEND: ANDROID
|
||||
// JVM_TARGET: 1.8
|
||||
// WITH_STDLIB
|
||||
// LAMBDAS: CLASS
|
||||
|
||||
interface Z {
|
||||
private fun privateFun() = { "OK" }
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// LAMBDAS: CLASS
|
||||
|
||||
class Foo {
|
||||
fun foo() = { }
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// LAMBDAS: CLASS
|
||||
// IGNORE_BACKEND_K2: JVM_IR
|
||||
// TARGET_BACKEND: JVM
|
||||
// FILE: Base.java
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// LAMBDAS: CLASS
|
||||
|
||||
class MyList<T> {
|
||||
|
||||
private fun noSignature(): T? = null
|
||||
|
||||
Reference in New Issue
Block a user