Assembly attributes before types #73
Loading…
Reference in a new issue
No description provided.
Delete branch "AssemblyAttributesBeforeTypes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In declarations like this:
the attribute will be added to the type.
Failing test and fix in separate commits.
Actually I think this is a parser bug; assembly attributes should be top-level nodes, and not be part of TypeDeclaration.Attributes.
What is happening with this issue? I don't feel comfortable hacking the parser myself, as that is code which I have touched very little.
I think my work around fixes that - let's close the issue for now.
The test is ignored (and fails) in master, and your workaround seems to have been reverted in
4984985673(I want to reopen, but I seem to not have the rights to do that)
The corresponding mcs bug was closed: https://bugzilla.xamarin.com/show_bug.cgi?id=12204
However, this is still an issue. I can reproduce it whenever there are two or more assembly/module attribute sections; with just a single section the issue does not occur anymore.
The 'A' attribute will be in global scope as expected, but the 'B' attribute is attached to the type declaration.
Pull request closed