-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fix: allow overlapping types in Expected
#5218
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
Conversation
Expected
Expected
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice unit test !
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #5218 +/- ##
=======================================
Coverage 77.9% 77.9%
=======================================
Files 783 783
Lines 66677 66707 +30
Branches 8108 8119 +11
=======================================
+ Hits 51921 51953 +32
+ Misses 14756 14754 -2
|
This is ready to merge |
High Level Overview of Change
This PR allows
Expected
to have overlapping types.Context of Change
I ran into an issue with
Expected<std::uint32_t, Json::Value>
, which wouldn't build because of implicit conversion fromunsigned int
toJson::Value
. This fixed the issue.Type of Change
API Impact
N/A
Test Plan
Added a test