Smart completion: no instantiation of anonymous object with uninferred type arguments in code
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
interface A<T>
|
||||
|
||||
fun <T> foo(a: A<T>){}
|
||||
|
||||
fun g() {
|
||||
foo(<caret>)
|
||||
}
|
||||
|
||||
// ELEMENT: object
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
interface A<T>
|
||||
|
||||
fun <T> foo(a: A<T>){}
|
||||
|
||||
fun g() {
|
||||
foo(object: A<<caret>> {})
|
||||
}
|
||||
|
||||
// ELEMENT: object
|
||||
Reference in New Issue
Block a user