Swift style compilation condition functions fail to parse after condition operators

silver
(Dante Broggi) #1

IDE: Visual Studio X/Fire
Version: 10.0.0.2399 (develop)
Target (If relevant): OSX
Description:
Swift style os(…) or arch(…) conditions after || or && operators fail to parse in #if conditions.

Expected Behavior:
Correct compilation based on target discrimination.
Actual Behavior:
(A) “E: End of expression expected but “os” found [<file>(<line>)]”
(B) “E: End of expression expected but “arch” found [<file>(<line>)]”
Steps:

// Testing:
#if arch(x86_64) && os(iOS) // A
#endif
#if os(macOS) || arch(i386) // B
#endif
(RemObjects) #2

Thanks, logged as bugs://82598

(RemObjects) #3

bugs://82598 got closed with status fixed.