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 checking inconsistency between .new and .clone #3243
Comments
From @japhb09:09 < japhb__> r: class A { has Int @.ints }; my A $one .= new(ints 09:10 < jnthn> japhb__: Something's inconsistent there... 09:11 < japhb__> Yeah. It feels like there's just something missing 09:12 < jnthn> japhb__: Please RT it if you didn't already |
From @usev6I added a test (fudged 'skip') to S12-attributes/instance.t with commit Raku/roast@dbf53cb4b1 AFAIU this inconsistency stems from using nqp::decont on attributes given to .new (in src/core/Mu.pm), but not doing so on attributes given to .clone. I added a PR (rakudo/rakudo#443) which would make the added test pass. |
1 similar comment
From @usev6I added a test (fudged 'skip') to S12-attributes/instance.t with commit Raku/roast@dbf53cb4b1 AFAIU this inconsistency stems from using nqp::decont on attributes given to .new (in src/core/Mu.pm), but not doing so on attributes given to .clone. I added a PR (rakudo/rakudo#443) which would make the added test pass. |
@usev6 - Status changed from 'new' to 'open' |
From @usev6The test passes now. I'm closing this ticket as 'resolved'. |
1 similar comment
From @usev6The test passes now. I'm closing this ticket as 'resolved'. |
@usev6 - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#120059 (status was 'resolved')
Searchable as RT120059$
The text was updated successfully, but these errors were encountered: