-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[BUG] .value() on empty Optional #4121
Comments
I think this is the expected behaviour since it should abort on an empty max/mojo/stdlib/src/collections/optional.mojo Lines 322 to 323 in a37617b
It's more of an issue with using |
This could definitely use a better error message behavior. |
Yeah, I assume the issue is that I should be checking the type/contents of |
Thank you, we appreciate your report. I passed it along to the engineering team for more feedback. |
Just a heads up, there is an existing issue regarding this #3977, however it does not provide as much information. |
Bug description
Actual behavior
Mojo crashed and asked I submit a bug report
Expected behavior
Not sure. I'm mostly playing/testing with Mojo. Expected it would print "None" or perhaps unable to print None? Or similar?
Steps to reproduce
Crash report
System information
Magic info:
magic list max:
The text was updated successfully, but these errors were encountered: