Raku / old-issue-tracker

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

line number for `Too few possionals passed` error incorrectly points to last block in a HEREDOC #6099

Open p6rt opened 7 years ago

p6rt commented 7 years ago

Migrated from rt.perl.org#130862 (status was 'new')

Searchable as RT130862$

p6rt commented 7 years ago

From @zoffixznet

02​:30 IOninja m​: sub x (% (​:$made-on, :$routines, :$total, :$unique)) {␤␤␤␤␤␤␤␤␤␤␤␤␤ Q​:c​:to/END/␤y{$total}y␤END␤ }( |%(​:42made-on, :42routines, :42total, :42unique) ) 02​:30 camelia rakudo-moar dd4dfb​: OUTPUT​: «Too few positionals passed; expected 1 argument but got 0␤ in sub x at \ line 15␤ in block \ at \ line 1␤␤» 02​:31 IOninja m​: sub x (% (​:$made-on, :$routines, :$total, :$unique)) {␤␤␤␤␤␤␤␤␤␤␤␤␤ Q​:c​:to/END/␤y{$total}y␤␤␤␤␤␤␤␤␤␤␤{'meow'}␤END␤ }( |%(​:42made-on, :42routines, :42total, :42unique) ) 02​:31 camelia rakudo-moar dd4dfb​: OUTPUT​: «Too few positionals passed; expected 1 argument but got 0␤ in sub x at \ line 26␤ in block \ at \ line 1␤␤» 02​:31 IOninja Bug. If anyone wants to report (reported `line` is for the HEREDOC's last block, even though the issue is in `sub x`'s arguments)

https://irclog.perlgeek.de/perl6/2017-02-26#i_14166725