Smart completion: inheritors instantiation suggested + fixed a bug with incorrect presentation of generic java class instantiation

This commit is contained in:
Valentin Kipyatkov
2014-11-26 17:58:18 +03:00
parent 07f7a35bc9
commit 820c2c7cd8
33 changed files with 396 additions and 36 deletions
@@ -0,0 +1,8 @@
import p.*
fun foo(): KotlinTrait<I1<I2>> {
return <caret>
}
// EXIST: { lookupString: "object", itemText: "object: KotlinTrait<I1<I2>>{...}" }
// EXIST: { lookupString: "KotlinInheritor", itemText: "KotlinInheritor<I2>", tailText: "() (p)" }
@@ -0,0 +1,10 @@
package p
trait I1<T>
trait I2
trait KotlinTrait<T>
class KotlinInheritor<T> : KotlinTrait<I1<T>>
// ALLOW_AST_ACCESS