Auto-Complete, inserting a cast with alias

When inserting an automatic cast like:

using X = MyNamespace;

object fred;
X.MyObject o = fred;

after using <alt-enter> and chosing 'cast' goes into:

using MyNamespace;
using X = MyNamespace;

object fred = null;
X.MyObject o = (MyObject)fred;


Shouldn't it turn into:

using X = MyNamespace;

object fred = null;
X.MyObject o = (X.MyObject)fred;


Ronnie


2 comments
Comment actions Permalink

Please could you post this bug into our tracker?

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
<ronnie@freenet.co.uk> wrote in message
news:7c77a95384f78c76c8f0c816b60@news.jetbrains.com...

When inserting an automatic cast like:

>

using X = MyNamespace;

>

object fred;
X.MyObject o = fred;

>

after using <alt-enter> and chosing 'cast' goes into:

>

using MyNamespace;
using X = MyNamespace;

>

object fred = null;
X.MyObject o = (MyObject)fred;

>
>

Shouldn't it turn into:

>

using X = MyNamespace;

>

object fred = null;
X.MyObject o = (X.MyObject)fred;

>
>

Ronnie

>



0
Comment actions Permalink

Hello Eugene,

8893

Please could you post this bug into our tracker?



0

Please sign in to leave a comment.