Skip to content
This repository was archived by the owner on Sep 25, 2026. It is now read-only.

Add tests for type deconstruction and construction - #3164

Merged
vitek-karas merged 4 commits into
dotnet:mainfrom
vitek-karas:ConstructedTypes
Jan 3, 2023
Merged

vitek-karas merged 4 commits into
dotnet:mainfrom
vitek-karas:ConstructedTypes

Conversation

@vitek-karas

Copy link
Copy Markdown
Member

This was prompted by dotnet/runtime#123767
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 :-)

@vitek-karas
vitek-karas merged commit 72d05e4 into dotnet:main Jan 3, 2023
@vitek-karas
vitek-karas deleted the ConstructedTypes branch January 3, 2023 11:55
tlakollo pushed a commit to tlakollo/runtime that referenced this pull request Jan 16, 2023
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).

Commit migrated from dotnet/linker@72d05e4
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants