# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #86338] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=86338 >
<masak> rakudo: role R[::T] { multi method foo(::T $x) { say $x } }; class C does R[Str] does R[Int] {}; C.new.foo(5.5) # should fail, right? <p6eval> rakudo e3bd9a: OUTPUT«5.5» <masak> :/ <masak> rakudo: class C { multi method foo(Str $x) { say "Str" }; multi method foo(Int $x) { say "Int" } }; C.new.foo(5.5) # this, equivalent, piece of code fails properly <p6eval> rakudo e3bd9a: OUTPUT«No candidates found to invoke for method 'foo' on object of type 'C' [...] * masak submits rakudobug