Make backTicked.kt test more reasonable, though real invoking the passed lambda
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user