-
Notifications
You must be signed in to change notification settings - Fork 57
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: ObjectData
type check
#459
Conversation
ObjectData
Int
/Bool
value check
✅ Deploy Preview for apollo-ios-docc canceled.
|
✅ Deploy Preview for eclectic-pie-88a2ba canceled.
|
ObjectData
Int
/Bool
value checkObjectData
type check
Putting this into draft since I realized it can't use the static constants due to being a public function. |
I can't think of a better non-intrusive way to fix this. The static constants needed to be made public because the |
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.
Would like us to try using @usableFromInline
for those constants. Otherwise this LGTM!
1da33d37 fix: `ObjectData` type check (#459) 65d7a19e Update ROADMAP.md git-subtree-dir: apollo-ios git-subtree-split: 1da33d37db8fadaa426e3d2493a9dbddb4617308
git-subtree-dir: apollo-ios git-subtree-mainline: dd2193b git-subtree-split: 1da33d37db8fadaa426e3d2493a9dbddb4617308
Fixes apollographql/apollo-ios#3414
Checking whether
AnyHashable
can be cast to aBool
is not enough to infer behaviour from the original type. The only way to do that is to compare against the two possibleBool
values;true
andfalse
. This is possible because of the wayAnyHashable
does equality comparison.