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

Make map.get work with null key #2719

Open
addshore opened this issue Feb 28, 2025 · 0 comments
Open

Make map.get work with null key #2719

addshore opened this issue Feb 28, 2025 · 0 comments
Assignees

Comments

@addshore
Copy link
Contributor

I appear to be able to set a null key in a map, however I can't use .get to retrieve it

******************************************************************************
Class 'Null_' does not have any method 'hash-code'.
  0: HashedInsertionOrderedCollection_.hash-code_ <sdk>/core/collections.toit:2188:16
  1: HashedInsertionOrderedCollection_.find_ <sdk>/core/collections.toit:2303:13
  2: Map.[]=                   <sdk>/core/collections.toit:2858:15
  3: Header.STATUS-MAP         <pkg:lightbug>/protocol/Header.toit:32:11

As I can set a bull key, I'd expect to be able to .get it

@floitsch floitsch self-assigned this Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants