Checking "infix" modifier in completion and import popup

This commit is contained in:
Valentin Kipyatkov
2015-10-09 18:22:44 +03:00
parent a7577ac722
commit ee7425c1de
16 changed files with 49 additions and 24 deletions
@@ -1,4 +1,4 @@
fun Int.func(s: String): Int{}
infix fun Int.func(s: String): Int{}
fun test() {
val floor = "Floor"
+6 -6
View File
@@ -1,18 +1,18 @@
class C {
fun foo(){}
fun bar(p: Int) {}
fun foo(p: Int){}
infix fun bar(p: Int) {}
fun zoo(p1: Int, p2: Int){}
val prop: Int = 1
}
fun C.xxx() {}
fun C.yyy(p: Int) {}
fun C.xxx(p: Int) {}
infix fun C.yyy(p: Int) {}
fun C.zzz(p1: Int, p2: Int) {}
val C.extensionProp: Int get() = 1
fun <A, B> A.and(that: B): Pair<A, B> = Pair(this, that)
infix fun <A, B> A.and(that: B): Pair<A, B> = Pair(this, that)
fun String.ttt(p: Int) {}
infix fun String.ttt(p: Int) {}
fun f() {
C() <caret>
@@ -1,6 +1,6 @@
// checks that no special item "ext1 { String, Int -> ... }" created for infix call
fun Int.ext1(handler: (String, Int) -> Unit){}
fun Int.ext2(c: Char){}
infix fun Int.ext1(handler: (String, Int) -> Unit){}
infix fun Int.ext2(c: Char){}
fun foo() {
val pair = 1 ext<caret>
@@ -2,4 +2,4 @@ package dependency
class MyPair<A, B>(public val first: A, public val second: B)
public fun <A, B> A.pair(that: B): MyPair<A, B> = MyPair(this, that)
infix fun <A, B> A.pair(that: B): MyPair<A, B> = MyPair(this, that)
@@ -2,8 +2,8 @@ package other
import pack.C
fun C.xxx() {}
fun C.yyy(p: Int) {}
fun C.xxx(p: Int) {}
infix fun C.yyy(p: Int) {}
fun C.zzz(p1: Int, p2: Int) {}
val C.extensionProp: Int get() = 1