Skip to content

Conversation

NinoFloris
Copy link
Member

@NinoFloris NinoFloris commented Jan 30, 2024

Properly synthesize array mappings over the concrete type of the tuple not - as previously - the stand-in {Value}Tuple<object> type.

Refactored to use the DynamicTypeInfoResolver infra. Its entire point is to make these kinds of resolvers easier to write (it just didn't exist at the time we wrote the tupled record resolver).

This issue wasn't noticed as we weren't testing the valuetuple and tuple array mappings correctly.

Fixes #5518

@NinoFloris NinoFloris force-pushed the tupled-record-array-fix branch from 9d9a683 to b5d93c3 Compare January 30, 2024 23:30
@NinoFloris NinoFloris merged commit 43b3d0f into main Jan 31, 2024
@NinoFloris NinoFloris deleted the tupled-record-array-fix branch January 31, 2024 16:15
NinoFloris added a commit that referenced this pull request Jan 31, 2024
Fixes #5518

(cherry picked from commit 43b3d0f)
@NinoFloris
Copy link
Member Author

Backported to 8.0.2 via 77bc742

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.

Cannot read record type as System.ValueTuple`1[System.Object]
2 participants