-
Notifications
You must be signed in to change notification settings - Fork 320
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 checks inconsistent when dealing with a -> b
function types
#7289
Comments
a -> b
function typesa -> b
function types
a -> b
function typesa -> b
function types
|
Jaroslav Tulach reports a new STANDUP for yesterday (2023-07-15): Progress: - fixes #7289 ready for review: #7298
Next Day: Bugfixes, cleanup & performance |
Jaroslav Tulach reports a new STANDUP for yesterday (2023-07-16): Progress: - bugfix
Next Day: Bugfixes, cleanup & performance
|
Jaroslav Tulach reports a new STANDUP for yesterday (2023-07-17): Progress: - bookclub on top of
Next Day: Bugfixes, cleanup & performance
|
Running the example above yields:
Whereas we'd expect all 4 cases to behave the same way.
Weirdly, if the type is 'alone' - both
Function
andText -> Any
behave the same and accept a function input.However, once we construct a sum type using
|
, for some weird reason theText -> Any
seems as if it disappears.The text was updated successfully, but these errors were encountered: