XSharpPublic: Wrong #ifdef branch is shown as active
If I have an project with a definition WINFORMS. In the following code the first branch is shown as active. It is not considered that Winforms is defined
FUNCTION Start() AS VOID STRICT
local u := {1,2} as usual
if (u is array var val)
foreach var elem in val
Console.WriteLine("array")
next
endif
#ifndef WINFORMS
Console.WriteLine("Not Winforms")
#else
Console.WriteLine("Winforms")
#endif
WAIT
return
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 20 (6 by maintainers)
For me it works also