Global constant strings generated by nested macros cannot be written to binary files. #79235
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
I use macro to create global constant string, it success.
But, when I use a nested macro to wrap
#flat
macro, it build success and expand as expected in XCode, but the constant string did not appears in mach-o file. (I used XMachOViewer to check executable binary file)Reproduction
Attached is a reduced package that reproduces the behavior:
Test.zip
Expected behavior
The global constant "~~~~456" will be compiled to the mach-o binary file.
Environment
swift 6.0
Additional information
No response
The text was updated successfully, but these errors were encountered: