Dealing with infix calls in completion
#KT-4846 Fixed
This commit is contained in:
committed by
valentin
parent
9961a5ff16
commit
2bb553612c
@@ -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>
|
||||
}
|
||||
Reference in New Issue
Block a user