Skip Menu |
Queue is disabled
This queue is disabled and you may not create new tickets in it.
Report information
Id: 124392
Status: deleted
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: jepeway [at] blasted-heath.com
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



From: Chris Jepeway <jepeway [...] blasted-heath.com>
Subject: Roles can't use stub methods to indicate "must implement" methods: calls to such methods always ambiguous
Date: Sat, 25 Apr 2015 19:20:00 -0400
To: rakudobug [...] perl.org
Download (untitled) / with headers
text/plain 589b
Trying to tell doers of a role that they are expected to implement a method (a là Java interfaces) doesn’t seem to work. This role A { multi method a(Int $i) {...}; multi method a(Str $s) {...}; }; class B does A { multi method a(Int $i){0}; multi method a(Str $s) {"a"}; } ; B.new.a(0).say yields: Ambiguous call to 'a'; these signatures all match: :(B $: Int $i, *%_) :(B $: Int $i, *%_) in block <unit> at /tmp/0ILm1pfWyW:1 Both TimToady and timotimo suspect this to be a bug. See http://irclog.perlgeek.de/perl6/2015-04-22#i_10480886 for their discussion. Chris.
RT-Send-CC: perl6-compiler [...] perl.org
Download (untitled) / with headers
text/plain 180b
< jepeway> could somebody delete RT #124392? It's a dup from when I e-mailed rakudobug@ w/o [BUG] in Subject: header I'm going to add a link to RT #124393 and delete this ticket.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org