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
Failure to detect use of coercion on vars when smiley type constraint is used #6299
Comments
From @zoffixznetThe first eval complains that I can't use a coercer on a variable... However, the latter ones fail to detect use of coercion and don't complain, but don't coerce either. 18:43 Zoffix m: class { has Int() $.x = '42'}.new.x 18:43 Zoffix m: class { has Int:D() $.x = '42'}.new.x |
From @zoffixznetPartially fixed already. I believe the fix for rakudo/rakudo#1361 will fix this bug too. |
From @usev6rakudo/rakudo#1361 has been fixed back in February 2018. All three code snippets from this issue are failing with X::Syntax::Variable::BadType now. I've added a test to S12-coercion/coercion-types.t with commit Raku/roast@7fcc804bb9. I'm closing this ticket as 'resolved'. |
1 similar comment
From @usev6rakudo/rakudo#1361 has been fixed back in February 2018. All three code snippets from this issue are failing with X::Syntax::Variable::BadType now. I've added a test to S12-coercion/coercion-types.t with commit Raku/roast@7fcc804bb9. I'm closing this ticket as 'resolved'. |
@usev6 - Status changed from 'new' to 'resolved' |
Migrated from rt.perl.org#131414 (status was 'resolved')
Searchable as RT131414$
The text was updated successfully, but these errors were encountered: