Do not offer to convert to infix call when calling non-infix function
This commit is contained in:
+3
-1
@@ -1,8 +1,10 @@
|
||||
// IS_APPLICABLE: false
|
||||
// ERROR: 'infix' modifier is inapplicable on this function
|
||||
|
||||
fun foo(x: Foo) {
|
||||
x.<caret>foo(1) { it * 2 }
|
||||
}
|
||||
|
||||
interface Foo {
|
||||
fun foo(a: Int, f: (Int) -> Int)
|
||||
infix fun foo(a: Int, f: (Int) -> Int)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user