# New Ticket Created by  Вячеслав Матюхин 
# Please include the string:  [perl #75688]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=75688 >


This code strangely fails:

mmcle...@mmbook:~/rakudo$ cat test.pl 
multi sub RangeIterCmp(Str $a, Str $b) {
    $a.chars <=> $b.chars || $a cmp $b;
}

say RangeIterCmp('a', 'z');

mmcle...@mmbook:~/rakudo$ ./perl6 test.pl 
get_attr_str() not implemented in class 'Sub'
  in main program body at line 1:test.pl

RangeItemCmp sub here is copypasted from src/core/RangeIter.pm.
If function is renamed, everything works.

-- 
Вячеслав Матюхин
Разработчик
tel:6251;phone-context:+7(495)739-7000
tel:+7(926)313-96-42

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to