History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-25877
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Andrey Simanovsky
Reporter: Serge Baltic
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ReSharper

#if-elif-else-endif Construct Parsed Incorrectly

Created: 06 Aug 06 18:06   Updated: 09 Sep 06 13:33
Component/s: None
Fix Version/s: 2.0.1
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 245
Fixed in build: 250
Old URL: http://www.intellij.net/tracker/resharper/viewSCR?publicId=25877


 Description  « Hide
The ?BDS? symbol is defined, the code sample is:

-----------------
#if DEVENV
return _instance ?? (_instance = new DevenvSolutionHelper());
#elif BDS
return _instance ?? (_instance = new BdsSolutionHelper());
#else
#error There is no IDE selected for support, consider defining one of the symbols on the project.
#endif
-----------------

Of these three choices, R# displays the second and the third as active (BDS and #else) by color, and highlights the #error tag as an error. C# compiler passes the compilation and from its point of view only the second choice is active.

I think that even in the current R# parsign mode for the defines this case should work OK, as it does for the two-choice case.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.