Do not offer to convert to infix call when calling non-infix function

This commit is contained in:
Valentin Kipyatkov
2015-10-09 18:41:10 +03:00
parent ee7425c1de
commit 55cbe185f8
30 changed files with 114 additions and 34 deletions
@@ -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)
}