Smart completion: no instantiation of anonymous object with uninferred type arguments in code

This commit is contained in:
Valentin Kipyatkov
2015-09-03 21:33:02 +03:00
parent 40de063ebd
commit fe3e9341a1
12 changed files with 238 additions and 41 deletions
@@ -0,0 +1,17 @@
interface I<T>
abstract class C1<T> : I<T>
abstract class C2 : I<String>
abstract class C3 : I<Int>
fun <T> foo(i: I<T>){}
fun bar() {
foo(<caret>)
}
// EXIST: { itemText: "object: I<...>{...}" }
// EXIST: { itemText: "object: C1<...>(){...}" }
// EXIST: { itemText: "object: C2(){...}" }
// EXIST: { itemText: "object: C3(){...}" }
// NOTHING_ELSE