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