Files
kotlin-fork/idea/testData/intentions/toInfixCall/secondParameterLabeled.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

12 lines
232 B
Kotlin
Vendored

// IS_APPLICABLE: false
// ERROR: infix modifier is inapplicable on this function: must have a single value parameter
class Foo {
infix fun foo(x: Int = 0, y: Int = 0) {
}
}
fun bar(baz: Foo) {
baz.<caret>foo(y = 1)
}