Skip to content
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

Parametrized checks for subtypes #29

Open
bbrtj opened this issue Feb 17, 2019 · 0 comments
Open

Parametrized checks for subtypes #29

bbrtj opened this issue Feb 17, 2019 · 0 comments

Comments

@bbrtj
Copy link

bbrtj commented Feb 17, 2019

MooX/Types/MooseLike.pm, line 52
A new $test coderef is declared, which handles type check both for parent-type and subtype. Initial shift in this coderef is stored in $value and passed to test functions, both parent and child. The problem is when you have a type that has a subtype_of field and uses a parameter. The parameter will then never get passed to the test function, making it impossible to implement any type with a parameter that is a subtype of something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant