Priority
Show-stopper
Type
Bug 
State
Fixed 
Assignee
Andrey Simanovsky 
Subsystem
No subsystem 
Affected versions
Fixed in
Fixed in build
Next build 
Build
245
Fixed in build
250
  • Submitted by   Serge Baltic
    3 years ago (06 Aug 2006 18:06)
  • Updated by Serge Baltic
    3 years ago (09 Sep 2006 13:33)
  • Jira: RSRP-25877
    (history, comments)

RSRP-25877

#if-elif-else-endif Construct Parsed Incorrectly

0
The ?BDS? symbol is defined, the code sample is:


  1. if DEVENV
return _instance ?? (_instance = new DevenvSolutionHelper());
  1. elif BDS
return _instance ?? (_instance = new BdsSolutionHelper());
  1. else
  2. error There is no IDE selected for support, consider defining one of the symbols on the project.
  3. 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.

Issue was closed
Comments (0)
 
History (0)
 
Links
 
Issue has no comments