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

10 lines
235 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(bar = x)
}
interface Foo {
infix fun foo(baz: Int = 0, bar: Foo? = null)
}