-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Weird Perl <5.14 error with Union Types #29
Comments
Note that the error is not produced if I build the type in two steps:
|
Seems I can get around this with minimal change, but its really funky:
|
Type::Tiny has a strange bug (tobyink/p5-type-tiny#29) that only manifests in certain Perls with a certain pattern of coercion unions. Using grouping parens to ensure an order to the unions.
This also happened to me with the union |
Type::Tiny has a strange bug (tobyink/p5-type-tiny#29) that only manifests in certain Perls with a certain pattern of coercion unions. Using grouping parens to ensure an order to the unions.
Hmmm. Interesting. There used to be an issue when it came to this:
Because older Perls would interpret it as:
@haarg fixed it with the |
Moved to RT. |
Travis CI complained to me about all my builds using Perl less than 5.14. It only happens with a very particular combination of union types. I've narrowed it down to a unit test:
The text was updated successfully, but these errors were encountered: