[TD] Update testdata according to previous commit

This commit is contained in:
Dmitriy Novozhilov
2021-01-27 12:22:36 +03:00
parent 3a0eee64b8
commit 64a300bfcd
453 changed files with 736 additions and 777 deletions
@@ -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 -1
View File
@@ -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,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};