KT-7901 Auto import is not suggested

KT-7229 Completion for extension functions with complex capture

 #KT-7901 Fixed
 #KT-7229 Fixed
This commit is contained in:
Valentin Kipyatkov
2015-06-12 01:07:53 +03:00
parent 0877c09b80
commit 4deefce603
5 changed files with 58 additions and 7 deletions
@@ -0,0 +1,12 @@
trait I<T>
fun <E, T : I<E>> T.ext() : T = this
class A<T> : I<T>
fun main(args: Array<String>) {
val a = A<Int>()
a.<caret>
}
// EXIST: ext
@@ -0,0 +1,11 @@
interface D<T>
fun <T1, T2 : D<T1>> T2.ext() {}
class C : D<String> {
fun foo() {
this.<caret>
}
}
// EXIST: ext