assertMacroExpansion
should emit an error if macro is applied to node that is not a variable
#2207
Labels
Macros
Issues in the SwiftSyntaxMacro… modules
When applying an accessor macro to e.g. a struct,
assertMacroExpansion
will currently happily swallow the attribute. It should, however, emit an error that accessor macros can’t be applied to structs. Ie. the following test case should emit an error.rdar://115562563
The text was updated successfully, but these errors were encountered: