Files
kotlin-fork/idea/testData/intentions/toInfixCall/multipleArguments.kt
T
Yan Zhulanow 6752df189d Make infix modifier diagnostic message more informative (KT-12589)
(cherry picked from commit 2744309)
2016-06-24 15:10:19 +03:00

10 lines
214 B
Kotlin
Vendored

// IS_APPLICABLE: false
// ERROR: infix modifier is inapplicable on this function: must have a single value parameter
interface Foo {
infix fun foo(a: Int, b: Int)
}
fun foo(x: Foo) {
x.<caret>foo(1, 2)
}