Sign in
◑
Theme
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
inference
/
inferInFunctionLiterals.kt
blob: be468075cfc8d4b9becb2d50d64817bfdea55b08 [
file
]
// FIR_IDENTICAL
package
n
//+JDK
import
java
.
util
.*
fun
<
T
>
expected
(
t
:
T
,
f
:
()
->
T
)
:
T
=
t
fun test
(
arrayList
:
ArrayList
<
Int
>,
list
:
List
<
Int
>)
{
val t
=
expected
(
arrayList
,
{
list
.
reverse
()
})
}
fun
<
T
>
List
<
T
>.
reverse
()
:
List
<
T
>
=
this