Do not offer to convert to infix call when calling non-infix function
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
// WITH_RUNTIME
|
||||
// IS_APPLICABLE: false
|
||||
// ERROR: 'infix' modifier is inapplicable on this function
|
||||
|
||||
package demo
|
||||
|
||||
fun foo(str: String) = kotlin.io.println(str)
|
||||
infix fun foo(str: String) = kotlin.io.println(str)
|
||||
|
||||
fun main() {
|
||||
<caret>demo.foo("")
|
||||
|
||||
Reference in New Issue
Block a user