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

12 lines
234 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)
}