Smart completion: no instantiation of anonymous object with uninferred type arguments in code
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user