Skip to content
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

fix: do not generalise enumerable dictionary value types #1155

Merged
merged 1 commit into from Mar 9, 2024

Conversation

latonz
Copy link
Contributor

@latonz latonz commented Mar 8, 2024

Previously the dictionary mapping tried to generalise its input source parameter type for better reusability of the generated mapping method. If a dictionary type was constructed for this the key and value mapping source types were used. If the value mapping is also a generalised enumerable mapping the original dictionary source type may not be assignable to the generalised dictionary type due to the change generalisation the value type.

Fixes #1152

Copy link

codecov bot commented Mar 8, 2024

Codecov Report

Attention: Patch coverage is 87.03704% with 7 lines in your changes are missing coverage. Please review.

Project coverage is 91.43%. Comparing base (da4115c) to head (d562370).

Files Patch % Lines
...y/Descriptors/Enumerables/DictionaryInfoBuilder.cs 81.57% 3 Missing and 4 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1155      +/-   ##
==========================================
- Coverage   91.48%   91.43%   -0.05%     
==========================================
  Files         227      230       +3     
  Lines        7785     7799      +14     
  Branches      985      989       +4     
==========================================
+ Hits         7122     7131       +9     
- Misses        431      433       +2     
- Partials      232      235       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@latonz latonz force-pushed the 1152-dictionary-with-enumerable-value branch from a5cc868 to 8d0a703 Compare March 8, 2024 03:55
@latonz latonz marked this pull request as ready for review March 8, 2024 03:59
@latonz latonz requested a review from CommonGuy March 8, 2024 03:59
@latonz latonz self-assigned this Mar 8, 2024
@latonz latonz force-pushed the 1152-dictionary-with-enumerable-value branch from 8d0a703 to 6d5f70f Compare March 8, 2024 05:08
@latonz latonz force-pushed the 1152-dictionary-with-enumerable-value branch from 6d5f70f to d562370 Compare March 9, 2024 03:50
@latonz latonz enabled auto-merge (squash) March 9, 2024 03:50
@latonz latonz merged commit b4d5e74 into riok:main Mar 9, 2024
17 of 19 checks passed
@latonz latonz deleted the 1152-dictionary-with-enumerable-value branch March 9, 2024 03:54
Copy link

github-actions bot commented Mar 9, 2024

🎉 This PR is included in version 3.5.0-next.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dictionary value type parameter generalisation leads to unassignable types
2 participants