Suppose I have two methods, get(String name) and get(int index).

I write get(o) where o is an Object, and this is correctly marked as an 
error.

Now I want to cast o to String.  I add a parenthesis, "get((|o)", and 
press ctrl-shift-space.

IDEA suggests int and String, since it only considers the context where 
the resulting expression will be used.  Maybe it could also consider the 
object or primitive value that is being cast to something -- o is an 
Object and cannot be cast to int.



_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-features

Reply via email to