# New Ticket Created by  Moritz Lenz 
# Please include the string:  [perl #75114]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=75114 >


<@moritz_> rakudo: use MONKEY_TYPING; augment class Int { method foo  {
say "OH HAI" } }; 5.foo
<+p6eval> rakudo ddaab3: OUTPUT«Method 'foo' not found for invocant of
class 'Integer'␤current instr.: '_block14' pc 29 (EVAL_1:0)␤»

There are two bugs in here; the first being that method foo is not
found, and the second is that it reports class Integer, even though that
doesn't exist:

<@moritz_> rakudo: use MONKEY_TYPING; augment class Integer { method foo
  { say "OH HAI" } }; 5.foo
<+p6eval> rakudo ddaab3: OUTPUT«Can't augment class that doesn't
exist␤current instr.: 'perl6;Perl6;Grammar;add_name' pc 43094
(src/gen/perl6-grammar.pir:344)␤»

Reply via email to