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
LTA error message for attempting to use a signature in a list assignment #1726
Comments
From @sorear15:14 < sorear> rakudo: my ($foo, $bar = "baz") = <a>; say "$foo $bar" |
From @moritz19:36 <@moritz_> rakudo: my ($foo, $bar = "baz") = <a>; say "$foo $bar" Much better now, though not perfect. |
The RT System itself - Status changed from 'new' to 'open' |
From @cokeOn Sat Jul 24 10:38:58 2010, moritz wrote:
Slight change: 09:20 < [Coke]> rakudo: my ($foo, $bar = "baz") = <a>; say "$foo $bar" #RT -- |
From @MasterDuke17On Wed Feb 01 06:21:05 2012, coke wrote:
perl6 -e 'my ($foo, $bar = "baz") = <a>; say "$foo $bar"' perl6 --version |
If I get this right, this should complain about the fact that it's a list. Saying that it's uninitialized anyway makes no sense... Also, same problem in 2020.05 |
Updated: my ($foo, $bar = "baz") = <a>;
say ~$foo;
say ~$bar; # Use of uninitialized value $bar of type Any in string context. Not totally sure this is incorrect now. Since the pair is assigned a list with a single element, the non-existing second element clobbers what's in there. |
Migrated from rt.perl.org#74664 (status was 'open')
Searchable as RT74664$
The text was updated successfully, but these errors were encountered: