I checked it in the latest build and could not reproduce. Is it reproducable for you?
Valentin Kipiatkov Chief Scientist, Vice President of Product Development JetBrains, Inc http://www.jetbrains.com "Develop with pleasure!"
Given this code:
class CreateCommand : Command<CreateCommand.Parameters> { public enum Parameters { } } When calling 'Optimize usings' and checking the 'Shorten qualified references' this invalid code results:
class CreateCommand : Command<Parameters> { public enum Parameters { } } Regards, Pablo
I've reproduced it again in 226. There seems to be an issue when the base is redundantly qualified. The above code doesn't appear to be affected, but this code, sure is:
namespace RS.OtherAssembly {
class Command
{
}
class CreateCommand :
RS.OtherAssembly.Command]]> { public enum Parameters { } } }
Note that the base class is redundantly qualified (as simply putting Command would have sufficed).
Regards, Pablo -
BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (MingW32)
BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Valentin Kipiatkov (JetBrains) wrote:
Nope. It appears to have been fixed!
Great work!!!
Thanks,
Pablo
-
BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (MingW32)
iD8DBQFEGatPvooSiBfQCSoRAod5AJ4m5RZyNGA9mSVW1XJzdFByPb19ZACgvvKa
yciLM+DDWmU0t1oYU0I6qyU=
=PjAO
-
END PGP SIGNATURE-----
BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Valentin Kipiatkov (JetBrains) wrote:
I've reproduced it again in 226. There seems to be an issue when the
base is redundantly qualified. The above code doesn't appear to be
affected, but this code, sure is:
namespace RS.OtherAssembly
{
class Command { } class CreateCommand : RS.OtherAssembly.Command]]>
{
public enum Parameters
{
}
}
}
Note that the base class is redundantly qualified (as simply putting
Command would have sufficed).
Regards,
Pablo
-
BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (MingW32)
iD8DBQFEIBfOvooSiBfQCSoRAuG/AJwN5562PQnfZC6axOtfiKONawI6/wCgxXHS
840HcwU5h7fpfID1Ir4+IKQ=
=eo2q
-
END PGP SIGNATURE-----