[TD] Update testdata according to previous commit
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// NO_CHECK_LAMBDA_INLINING
|
||||
// FILE: 1.kt
|
||||
|
||||
inline fun (() -> String).test(): (() -> String) = { invoke() + this.invoke() + this() }
|
||||
@@ -7,7 +8,6 @@ inline fun (() -> String).extensionNoInline(): String = this() + (this.hashCode(
|
||||
|
||||
// FILE: 2.kt
|
||||
|
||||
//NO_CHECK_LAMBDA_INLINING
|
||||
|
||||
fun box(): String {
|
||||
val res = { "OK" }.test()()
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// NO_CHECK_LAMBDA_INLINING
|
||||
// FILE: 1.kt
|
||||
|
||||
inline fun <T> test(p: T) {
|
||||
@@ -6,7 +7,6 @@ inline fun <T> test(p: T) {
|
||||
|
||||
// FILE: 2.kt
|
||||
|
||||
//NO_CHECK_LAMBDA_INLINING
|
||||
fun box() : String {
|
||||
test {"123"}
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// NO_CHECK_LAMBDA_INLINING
|
||||
// FILE: 1.kt
|
||||
|
||||
inline fun test(p: Any) {
|
||||
@@ -6,7 +7,6 @@ inline fun test(p: Any) {
|
||||
|
||||
// FILE: 2.kt
|
||||
|
||||
//NO_CHECK_LAMBDA_INLINING
|
||||
fun box() : String {
|
||||
test {"123"}
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// NO_CHECK_LAMBDA_INLINING
|
||||
// FILE: 1.kt
|
||||
|
||||
inline fun calc(s: (Int) -> Int, noinline p: (Int) -> Int) : Int {
|
||||
@@ -9,7 +10,6 @@ inline fun extensionLambda(noinline bar: Int.() -> Int) = 10.bar()
|
||||
|
||||
// FILE: 2.kt
|
||||
|
||||
//NO_CHECK_LAMBDA_INLINING
|
||||
fun test1(): Int {
|
||||
return calc( { l: Int -> 2*l}, { l: Int -> 4*l})
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// NO_CHECK_LAMBDA_INLINING
|
||||
// FILE: 1.kt
|
||||
|
||||
package test
|
||||
@@ -8,7 +9,6 @@ inline fun <T> inlineFun(arg: T, f: (T) -> Unit) {
|
||||
|
||||
// FILE: 2.kt
|
||||
|
||||
//NO_CHECK_LAMBDA_INLINING
|
||||
import test.*
|
||||
|
||||
fun test1(param: String): String {
|
||||
|
||||
+1
-1
@@ -1,3 +1,4 @@
|
||||
// NO_CHECK_LAMBDA_INLINING
|
||||
// FILE: 1.kt
|
||||
|
||||
package test
|
||||
@@ -8,7 +9,6 @@ inline fun <T> inlineFun(arg: T, f: (T) -> Unit) {
|
||||
|
||||
// FILE: 2.kt
|
||||
|
||||
//NO_CHECK_LAMBDA_INLINING
|
||||
import test.*
|
||||
|
||||
inline fun test1(crossinline param: () -> String): String {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// NO_CHECK_LAMBDA_INLINING
|
||||
// FILE: 1.kt
|
||||
|
||||
class Inline {
|
||||
@@ -9,7 +10,6 @@ class Inline {
|
||||
|
||||
// FILE: 2.kt
|
||||
|
||||
//NO_CHECK_LAMBDA_INLINING
|
||||
fun test1(): Int {
|
||||
val inlineX = Inline()
|
||||
var p = { l : Int -> l};
|
||||
|
||||
Reference in New Issue
Block a user