prefer relevant types when completing cast type (IDEA-167190, IDEA-156868)

This commit is contained in:
peter
2017-01-31 19:23:12 +01:00
parent 476734465d
commit f66c322e16
7 changed files with 124 additions and 26 deletions
@@ -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 {}
@@ -0,0 +1,7 @@
public class Super {
static void foo(CharSequence o) {
((<caret>) o)
}
}