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


11:07 <@moritz_> rakudo: class A { has $.a; multi method new ($){  } }; 
say A.new(:a<b>).a
11:07 < p6eval> rakudo 0334df: OUTPUT«Any()␤»
11:08 <@moritz_> that bit me while writing Date.pm
11:08 <@moritz_> not sure if it's allowed by spec or not
11:08 < masak> er.
11:09 < masak> you're returning nothing from the method?
11:09 < masak> shouldn't you be getting Nil back?
11:09 <@moritz_> I'm not calling that method
11:09 < masak> ah, true.
11:09 <@moritz_> I think it's a bug
11:09 < masak> so do I.
11:09 <@moritz_> because either it finds the default method, then the 
initialization should work
11:10 <@moritz_> or it doesn't find the method, then it should die horribly
11:10 < masak> aye.
11:10 < masak> seems kinda weird...
11:10 <@moritz_> rakudo: class A { has $.a }; say A.new(:a<b>).a
11:10 < masak> rakudo: class A { has $.a; multi method new ($){ say "OH 
HAI" }}; say A.new(:a<b>)
11:10 < p6eval> rakudo 0334df: OUTPUT«b␤»
11:10 < p6eval> rakudo 0334df: OUTPUT«A()<0x5ebcbe8>␤»

Reply via email to