-
Notifications
You must be signed in to change notification settings - Fork 26
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
Type Checking Nothing #819
Labels
Comments
There are simpler problems when using For example, given
The following requires that
The desired code:
does not compile. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was experimenting with some code and got the following type error.
I think I am on the head of 'development'. I assume it's an easy fix.
This class compiles and runes fine:
class Main def main() : Maybe[int] if true then Just(5) else Nothing end end end
However, this class produces a type error:
class Main def main() : Maybe[int] if true then Nothing else Nothing end end end
The text was updated successfully, but these errors were encountered: