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
clashing type constraints accepted #4568
Comments
From zefram@fysh.orgS02 says this will produce a compiler error: $ ./perl6 -e 'my Int $a of Str; say "hi"' The actual result is that the "of" type is used, and the prefix type $ ./perl6 -e 'my Int $a of Str is default("z") of Rat; say "hi"' The last "of" type is used as the type constraint. (But again per [perl Presumably multiple type constraint clauses, however expressed, should -zefram |
From @AlexDanielThis was fixed in (2015-11-18) rakudo/rakudo@06729d9 $ perl6 -e 'my Int $a of Str; say "hi"' $ perl6 -e 'my Int $a of Str is default("z") of Rat; say "hi"' The last one is weirdly explicit, but that's good enough I think. Too much garbage in, some garbage out. 「testneeded」 On 2015-09-20 12:00:36, zefram@fysh.org wrote:
|
The RT System itself - Status changed from 'new' to 'open' |
From @zoffixznet |
@zoffixznet - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#126123 (status was 'resolved')
Searchable as RT126123$
The text was updated successfully, but these errors were encountered: