-
-
Notifications
You must be signed in to change notification settings - Fork 290
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
Error without "unnecessary" wildcard #6873
Comments
Strangely enough the signature |
I've got a possible fix in can/src/annotation.rs: /*match ext {
Some(_) => {
// just `a` does not mean the same as `[]`, so even
// if there are no fields, still make this a `TagUnion`,
// not an EmptyTagUnion
Type::TagUnion(
Default::default(),
TypeExtension::from_type(ext_type, is_implicit_openness),
)
}
None => Type::EmptyTagUnion,
}*/
Type::TagUnion(
Default::default(),
TypeExtension::from_type(ext_type, is_implicit_openness),
) I do now have a failing test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I remove my "unnecessary wildcard" my code does not work anymore :p
This produces the warning:
If I remove the
*
inokStr : Str -> Result Str []*
I get:It appears the
Result Str []
is not inferred asResult Str []*
, which would be the expected behavior.The text was updated successfully, but these errors were encountered: