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
@@ -1,3 +1,3 @@
val c: java.io.Closeable = <caret>
//ELEMENT: object
//ELEMENT_TEXT: "object: Closeable{...}"
@@ -6,4 +6,4 @@ val c: java.io.Closeable = object: Closeable {
}
}
//ELEMENT: object
//ELEMENT_TEXT: "object: Closeable{...}"
@@ -1,3 +1,6 @@
import java.util.Date
var a : Date = <caret>
// ELEMENT: Date
// TAIL_TEXT: "(...) (java.util)"
@@ -1,3 +1,6 @@
import java.util.Date
var a : Date = Date(<caret>)
// ELEMENT: Date
// TAIL_TEXT: "(...) (java.util)"
@@ -1,3 +1,4 @@
var a : Runnable = <caret>
// ELEMENT: Runnable
// ELEMENT_TEXT: Runnable
// TAIL_TEXT: "()"
@@ -1,3 +1,4 @@
var a : Runnable = Runnable { <caret> }
// ELEMENT: Runnable
// ELEMENT_TEXT: Runnable
// TAIL_TEXT: "()"