dotnet / linker

387 stars 126 forks source link

Add tests for type deconstruction and construction #3164

Closed vitek-karas closed 1 year ago

vitek-karas commented 1 year ago

This was prompted by https://github.com/dotnet/linker/issues/3158 So I just added several tests for various shapes of type deconstructions. To make it symmetric I also added tests for what I call type construction (tuples, anonymous types, records).

The naming is probably pretty bad and thus the test is undiscoverable. If somebody knows the right terminology or has a better idea for naming, please :-)