"Optimize usings" breaks the code

Hello.

Consider the following code fragment:

and


Running "optimize usings" on the second file breaks it. The example may seem
quite unnatural (e.g. Core.Exception should inherit from System.Exception)
however it's just a greatly simplified version of a real project.

Regards.


2 comments
Comment actions Permalink

Please, submit this bug to the tracker.

--
Andrey Simanovsky
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"



"Maxim Babenko" <mab@shade.msu.ru> wrote in message
news:cb77r7$evm$1@is.intellij.net...

Hello.

>

Consider the following code fragment:

 namespace Core
> {
>  class Exception {}
>  class RuntimeException {}
> }
> ]]>

and

 using System;
> using RuntimeException = Core.RuntimeException;
>
> namespace Tools.MessageCompiler.Core
> {
> class FirstException : RuntimeException {}
> class SecondException : Exception {}
> }
> ]]>

>

Running "optimize usings" on the second file breaks it. The example may

seem

quite unnatural (e.g. Core.Exception should inherit from System.Exception)
however it's just a greatly simplified version of a real project.

>

Regards.

>
>


0

Please sign in to leave a comment.