Files
kotlin-fork/idea/testData/intentions/toInfixCall/singlePackageFunctionCall.kt
T
Alexander Udalov 9be219b69c Check presence of dispatch receiver parameter in modifier checks
Also fix typo in "inapplicable infix" diagnostic message
2016-07-22 18:13:39 +03:00

12 lines
250 B
Kotlin
Vendored

// WITH_RUNTIME
// IS_APPLICABLE: false
// ERROR: 'infix' modifier is inapplicable on this function: must be a member or an extension function
package demo
infix fun foo(str: String) = kotlin.io.println(str)
fun main() {
<caret>demo.foo("")
}