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
Rakudo gives incorrect output for subtypes #547
Comments
From publiustemp-perl6users@yahoo.com subset Letter of Str where { my $first_letter = 'a'; my Letter $second_letter = 'a'; sub doit (Letter $letter) { doit('a'); That outputs (_block69 is the second 'say' and the 'Cannot assign' is the sub call): a My info: $ svn info; uname -a Darwin curtis-poes-computer-3.local 9.5.1 Darwin Kernel Version 9.5.1: Fri Sep 19 16:19:24 PDT 2008; root:xnu-1228.8.30~1/RELEASE_I386 i386 -- |
From @jnthnOn Sat Dec 27 14:08:48 2008, publiustemp-perl6users@yahoo.com wrote:
That's a Perl 5-o. :-) You likely meant: subset Letter of Str where { Which does work. But there are two issues: * We should implement the =~ check to give you a useful message about * I think both cases should give the "cannot assign to readonly So to resolve this ticket we should do the second of these. Thanks, Jonathan |
The RT System itself - Status changed from 'new' to 'open' |
From @jnthnOn Fri Feb 13 10:06:37 2009, jnthn@jnthn.net wrote:
And as of git 0f87695 this now fails with the read-only error in all Plus added tests. :-) Thanks, Jonathan |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#61776 (status was 'resolved')
Searchable as RT61776$
The text was updated successfully, but these errors were encountered: