Project
ReSharper
Priority
Major
Type
Bug
Fix versions
Mirabile Futurum
State
Open
Assignee
Evgeny Pasynkov
Subsystem
Code Cleanup
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   Dmitry Shaporenkov
    5 years ago (05 Aug 2006 22:09)
  • Updated by   Dmitry Shaporenkov
    4 years ago (11 Jun 2007 15:11)
  • Jira: RSRP-15901
    (history, comments)
 
RSRP-15901 Optimize Using misbehaves with preprocessor directives
4
Issue is visible to: All Users
  The issue is visible to the selected user group only
If a using directive was inside a branch of a preprocessor statement #if,
it gets moved outside of it. This may result in broken compilation with another combination of preprocessor directives. Either respect placement of using directives inside preprocessor statements, or simply issue a warning during optimization that will draw user attention to this problem.
Comments (1)
 
History
 
Linked Issues (?)
 
TeamCity Changes (0)
 
John W Saunders III
  John W Saunders III
11 Jun 2007 15:11
4 years ago
If you're not going to fix this soon, you should consider something to mitigate the problem - like a warning or something. Maybe a simple warning about having using declarations within conditionals. It's the kind of thing I'm going to have to do with regular expressions otherwise - to find other places in the code that will be affected if I do a mass "Reformat Code".