Fixed duplication of some generic functions in code completion

This commit is contained in:
Valentin Kipyatkov
2015-05-08 12:07:51 +03:00
parent ce3492f270
commit 09f478fc0f
5 changed files with 48 additions and 4 deletions
@@ -0,0 +1,5 @@
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)
@@ -0,0 +1,9 @@
// this test tests correct substitution equality checking for generic functions
import dependency.pair
fun foo() {
1 pai<caret>
}
// EXIST: pair
// NUMBER: 1