[SR-2401] Macros with bitwise operations should be imported #45008
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
c/c++ macros
c interop
Feature: Interoperability with C
compiler
The Swift compiler itself
Additional Detail from JIRA
md5: bf817a076ddc93edd071b2f1d749c10d
relates to:
Issue Description:
Swift can see AVAILABLE_VALUE, but not NOT_AVAILABLE_VALUE because it has bitwise operations in it. Ideally the compiler should assume the identifier refers to a previous macro and constant-fold this.
The text was updated successfully, but these errors were encountered: