Files
kotlin-fork/idea/testData/intentions/toInfixCall/simpleArgumentAndFunctionLiteralArgument.kt
T
2016-07-22 18:13:38 +03:00

11 lines
234 B
Kotlin
Vendored

// 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)
}