You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(09:51:30 PM) camelia: rakudo-moar e360bd: OUTPUT«1»
(09:51:57 PM) skids: m: role A { multi method a ($ where { $_.say; $_ ~~ /a/ } ) { "A".say }; multi method a ($ where { $_.say; $_ ~~ /b/ } ) { "B".say } }; class C does A { }; C.new.a("a");
(09:51:57 PM) camelia: rakudo-moar e360bd: OUTPUT«aaA»
(09:52:02 PM) skids: m: role A { multi method a ($ where { $_.say; $_ ~~ /a/ } ) { "A".say }; multi method a ($ where { $_.say; $_ ~~ /b/ } ) { "B".say } }; class C does A { }; C.new.a("b");
(09:52:02 PM) camelia: rakudo-moar e360bd: OUTPUT«bCannot call a(C.new: "b"); none of these signatures match: (C $: $ where { ... }, *%_) in block <unit> at /tmp/10zZDctR_z line 1»
(09:52:08 PM) skids: star: role A { multi method a ($ where { $_.say; $_ ~~ /a/ } ) { "A".say }; multi method a ($ where { $_.say; $_ ~~ /b/ } ) { "B".say } }; class C does A { }; C.new.a("b");
(09:52:09 PM) camelia: star-m 2015.09: OUTPUT«bbbB»
Classes seem to be OK:
(09:55:47 PM) skids: m: class C { multi method a ($ where { $_.say; $_ ~~ /a/ } ) { "A".say }; multi method a ($ where { $_.say; $_ ~~ /b/ } ) { "B".say } }; C.new.a("a"); C.new.a("b");
(09:55:47 PM) camelia: rakudo-moar e360bd: OUTPUT«aaAbbbB»
PR #672 fixed the original issue, but while writing tests I noticed the
order of candidate testing is wrong, which is significant because
the first candidate to match should be chosen.
Fudged tests that cover both issues were added to S06-multi/value-based.t;
look for this ticket number.
So I'll leave this ticket open for that related issue.
Migrated from rt.perl.org#127025 (status was 'new')
Searchable as RT127025$
The text was updated successfully, but these errors were encountered: