Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
0801cc12da5af28d8009eb66d070f37079ab755d
/
.
/
idea
/
testData
/
intentions
/
toInfixCall
/
simpleArgumentAndFunctionLiteralArgument.kt
blob: 3dc9f8da013f7a5f4b4932b1174371cbeb4d10e4 [
file
] [
log
] [
blame
]
// IS_APPLICABLE: false
// ERROR: 'infix' modifier is inapplicable on this function: must have a single value parameter
fun foo
(
x
:
Foo
)
{
x
.<
caret
>
foo
(
1
)
{
it
*
2
}
}
interface
Foo
{
infix fun foo
(
a
:
Int
,
f
:
(
Int
)
->
Int
)
}