Dealing with infix calls in completion

#KT-4846 Fixed
This commit is contained in:
Valentin Kipyatkov
2014-09-18 17:17:35 +04:00
committed by valentin
parent 9961a5ff16
commit 2bb553612c
23 changed files with 177 additions and 31 deletions
@@ -0,0 +1,5 @@
fun <A, B> A.to(that: B): Pair<A, B> = Pair(this, that)
fun foo() {
val pair = 1 to<caret>
}
@@ -0,0 +1,5 @@
fun <A, B> A.to(that: B): Pair<A, B> = Pair(this, that)
fun foo() {
val pair = 1 to <caret>
}
@@ -0,0 +1,5 @@
fun <A, B> A.to(that: B): Pair<A, B> = Pair(this, that)
fun foo() {
val pair = 1 to<caret>
}
@@ -0,0 +1,5 @@
fun <A, B> A.to(that: B): Pair<A, B> = Pair(this, that)
fun foo() {
val pair = 1 to <caret>
}
@@ -0,0 +1,3 @@
fun foo() {
val pair = 1 makeP<caret>
}
@@ -0,0 +1,3 @@
package other
fun <A, B> A.makePair(that: B): Pair<A, B> = Pair(this, that)
@@ -0,0 +1,5 @@
import other.makePair
fun foo() {
val pair = 1 makePair <caret>
}