[perl #74414] [BUG] Multiple dispatch doesn't treat 'rw' parameters as narrower than readonly parameters in Rakudo

2015-11-13 Thread jn...@jnthn.net via RT
On Tue Nov 10 07:55:06 2015, pesc...@gmail.com wrote: > On Sat Feb 22 17:37:47 2014, coke wrote: > > On Fri Apr 16 01:31:22 2010, masak wrote: > > > rakudo: multi foo(Int $x is rw) { say "writable" }; multi > > > foo(Int $x) { "readonly" }; foo(42) > > > rakudo 78faa0: OUTPUT«Ambiguous dispatch t

[perl #74414] [BUG] Multiple dispatch doesn't treat 'rw' parameters as narrower than readonly parameters in Rakudo

2014-02-22 Thread Will Coleda via RT
On Fri Apr 16 01:31:22 2010, masak wrote: > rakudo: multi foo(Int $x is rw) { say "writable" }; multi > foo(Int $x) { "readonly" }; foo(42) > rakudo 78faa0: OUTPUT«Ambiguous dispatch to multi 'foo'. > Ambiguous candidates had signatures:␤:(Int $x)␤:(Int $x) [...] > * masak submits rakudobug > S0

[perl #74414] [BUG] Multiple dispatch doesn't treat 'rw' parameters as narrower than readonly parameters in Rakudo

2010-04-16 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #74414] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=74414 > rakudo: multi foo(Int $x is rw) { say "writable" }; multi foo(Int $x) { "readonly" }; f