Skip to content

Conversation

@reflectronic
Copy link
Contributor

For code like:

union MyUnion
{
    struct { int a; };
};
void MyFunction()
{
    MyUnion myUnion;  
    myUnion.a = 10;
}

myUnion.a = 10; was translated to C# using the mangled name, not the actual name of the field in C# (Anonymous).

@tannergooding tannergooding merged commit da66f97 into dotnet:master Jan 8, 2021
@reflectronic reflectronic deleted the fix-union-field-access-remapping branch January 8, 2021 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants