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
"of" type constraint inconsistently applied #4555
Comments
From zefram@fysh.orgIf a scalar variable is given a type constraint using the "of" syntax, $ ./perl6 -e 'my $a of Int; say $a' General pattern: any attempt to explicitly put an Any value in $a -zefram |
From zefram@fysh.orgExtended case: if the "of" clause comes after an "is default" clause, $ ./perl6 -e 'my $a is default("foo") of Int; say $a' -zefram |
From @AlexDanielAll of these were fixed (2017.11,HEAD(e5b660e)). Strings give compile-time errors, putting Any into something results in an Int. Curious minds can ask bisectable for details. 「testneeded」 On 2015-09-20 17:26:00, 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#126107 (status was 'resolved')
Searchable as RT126107$
The text was updated successfully, but these errors were encountered: