mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
prefer relevant types when completing cast type (IDEA-167190, IDEA-156868)
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
public class Super {
|
||||
|
||||
static void foo(Object o) {
|
||||
if (o instanceof SString) {
|
||||
((S<caret>) o)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class SString implements java.io.Serializable, nonImported.SzNameInTheEnd {}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
public class Super {
|
||||
|
||||
static void foo(CharSequence o) {
|
||||
((<caret>) o)
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user