Pragmas and scopes #3077
Labels
pragma
scope
Issues relating to scope checking
status: info-needed
More information is needed from the bug reporter to confirm the issue.
Milestone
The polarity pragma can only be given in the same scope as the name which it is applied to. The following code triggers a warning:
Warning:
I think other pragmas should be restricted in the same way. The following code is currently accepted:
I did not test all FFI pragmas, perhaps more can be added to the list.
The text was updated successfully, but these errors were encountered: