Make backTicked.kt test more reasonable, though real invoking the passed lambda

This commit is contained in:
Victor Petukhov
2021-10-27 15:49:59 +03:00
parent 4118f3146b
commit b7a9a7d922
@@ -1,11 +1,11 @@
// !LANGUAGE: +PartiallySpecifiedTypeArguments
// WITH_RUNTIME
fun <K, T> foo(x: (K) -> T): Pair<K, T> = (1 as K) to (1f as T)
fun <K, T> foo(x: (K) -> T): Pair<K, T> = 1 as K to x(1 as K)
class `_` {}
fun box(): String {
val x1 = foo<Int, `_`> { it.toFloat() as `_` } // Pair<Int, Float>
val x1 = foo<Int, `_`> { `_`() } // Pair<Int, Float>
return "OK"
}