[TD] Update testdata according to previous commit
This commit is contained in:
+1
-1
@@ -14,4 +14,4 @@ import test.*
|
||||
|
||||
fun box(): String {
|
||||
return test(Foo("OK")::a)
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -17,4 +17,4 @@ fun String.test() : String {
|
||||
|
||||
fun box() : String {
|
||||
return "O".test()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,4 +19,4 @@ fun box(): String {
|
||||
val a = A("OK")
|
||||
val s = arrayOf("OK")
|
||||
return s.filter(a::filter).first()
|
||||
}
|
||||
}
|
||||
|
||||
compiler/testData/codegen/boxInline/callableReference/bound/inlineValueParameterInsteadOfReceiver.kt
Vendored
+1
-1
@@ -12,4 +12,4 @@ import test.*
|
||||
|
||||
fun box(): String {
|
||||
return Z().run(Q()::f)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,4 +13,4 @@ import test.*
|
||||
fun box(): String {
|
||||
val result = 1.map(2::plus)
|
||||
return if (result == 3) "OK" else "fail $result"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,4 +13,4 @@ import test.*
|
||||
fun box(): String {
|
||||
val result = 1.map(3L::plus)
|
||||
return if (result == 4L) "OK" else "fail $result"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,4 +16,4 @@ val Int.myInc
|
||||
fun box(): String {
|
||||
val result = map(2::myInc)
|
||||
return if (result == 3) "OK" else "fail $result"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,4 +15,4 @@ val Long.myInc
|
||||
fun box(): String {
|
||||
val result = map(2L::myInc)
|
||||
return if (result == 3L) "OK" else "fail $result"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,4 +19,4 @@ fun box(): String {
|
||||
val a = A("O")
|
||||
val s = arrayOf("K")
|
||||
return s.map(a::map).first()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,4 +20,4 @@ private val foo = Foo()
|
||||
fun box(): String {
|
||||
val result = inlineFn("a", foo::foo, 5, foo::foo2, "end")
|
||||
return if (result == "aOK5OK2end") "OK" else "fail: $result"
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -16,4 +16,4 @@ import test.*
|
||||
|
||||
fun box(): String {
|
||||
return test(Foo::a)
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -17,4 +17,4 @@ import test.test
|
||||
|
||||
fun box(): String {
|
||||
return test(::a)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,4 +27,4 @@ fun box(): String {
|
||||
if (result != effects) return "fail 1: $effects != $result"
|
||||
|
||||
return if (result == "ABCD") "OK" else "fail 2: $result"
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -17,4 +17,4 @@ import test.*
|
||||
|
||||
fun box(): String {
|
||||
return test(Foo("OK")::a)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user