-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EnC update on method with custom attribute duplicates the attribute #52816
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
tagging @tmat |
Looks like this is a bug in how we emit attributes. For example, given a generation 0:
When method
That For attributes in general we should emit rows that edit any attribute that existed in the old compilation, and then rows for new attributes. Deletes |
Given the following method:
if there is an edit to change the return statement to
return 2
, applying the updates from the EnC service leads to 2[Custom]
attributes onMethod()
during runtime.Every successive edit adds another instance of the attribute to the CustomAttributes list.
This is an issue in testing because xunit only accepts 1
[Fact]
attribute on a method and throws if multiple exist.The text was updated successfully, but these errors were encountered: