Raku / old-issue-tracker

Tickets from RT
https://github.com/Raku/old-issue-tracker/issues
2 stars 1 forks source link

quote colon form in identifier lacks line number #5479

Closed p6rt closed 6 years ago

p6rt commented 8 years ago

Migrated from rt.perl.org#128712 (status was 'resolved')

Searchable as RT128712$

p6rt commented 8 years ago

From @gfldex

my $i = 42; my $foo​:bar«$i»; # OUTPUT​: #===SORRY!=== #QAST​::Var with scope '' NYI # #shell returned 1

p6rt commented 6 years ago

From @zoffixznet

On Sat, 23 Jul 2016 16​:49​:44 -0700, gfldex wrote​:

my $i = 42; my $foo​:bar«$i»; # OUTPUT​: #===SORRY!=== #QAST​::Var with scope '' NYI # #shell returned 1

Thank you for the report. This is now fixed in branch `post-release`.

Note that the variable needs to have compile-time value to be properly used inside the colonpair, so it should be `BEGIN my $i = 42; my $foo​:bar«$i»;` or `$i` should be a `constant`.

Fix​: https://github.com/rakudo/rakudo/commit/a35cd4e6529b8f6 Test​: https://github.com/perl6/roast/commit/cd24eb0310ccea73c

p6rt commented 6 years ago

The RT System itself - Status changed from 'new' to 'open'

p6rt commented 6 years ago

@zoffixznet - Status changed from 'open' to 'resolved'