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

NSDictionary.objectForKey_ at head does not allow a null return #1701

Closed
brianquinlan opened this issue Nov 5, 2024 · 2 comments · Fixed by #1718
Closed

NSDictionary.objectForKey_ at head does not allow a null return #1701

brianquinlan opened this issue Nov 5, 2024 · 2 comments · Fixed by #1718

Comments

@brianquinlan
Copy link
Contributor

brianquinlan commented Nov 5, 2024

objc.ObjCObjectBase objectForKey_(objc.ObjCObjectBase aKey) {

But 3.0 does:
https://pub.dev/documentation/objective_c/latest/objective_c/NSDictionary/objectForKey_.html

(the 3.0 version is correct)

@brianquinlan brianquinlan changed the title NSDictionary.objectForKey_ at head does all a null return NSDictionary.objectForKey_ at head does allow a null return Nov 5, 2024
@brianquinlan brianquinlan changed the title NSDictionary.objectForKey_ at head does allow a null return NSDictionary.objectForKey_ at head does not allow a null return Nov 5, 2024
@liamappelbe
Copy link
Contributor

We mess around with the nullabilty of certain methods to work around some inheritance issues. The visitor refactor might have introduced bugs in that logic.

@liamappelbe
Copy link
Contributor

liamappelbe commented Nov 13, 2024

Culprit: #1681 Actually that PR just exposed an existing bug.

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

Successfully merging a pull request may close this issue.

2 participants