Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
resolve
/
inferenceInLinkedLambdas.kt
blob: 59ae8528167631ef523a6e027c9f73fed79f045f [
file
]
// FIR_IDENTICAL
// DIAGNOSTICS: -UNUSED_PARAMETER
// CHECK_TYPE
fun
<
T
,
R
>
foo
(
first
:
()
->
T
,
second
:
(
T
)
->
R
):
R
=
throw
Exception
()
fun test
()
{
val r
=
foo
(
{
4
},
{
"${it + 1}"
}
)
r checkType
{
_
<
String
>()
}
}