I added a test with commit d2d4f7a9.
In comments to PR 487 it was suggested to make the error message even better by
mentioning .ACCEPTS
(https://github.com/rakudo/rakudo/pull/487#issuecomment-127776087).
Should we leave the ticket open until someone does that or is the ticket
closeable?
I created a PR for rakudo (following RT #125427):
https://github.com/rakudo/rakudo/pull/487
$ perl6-m -e 'class Foo { }; multi sub infix:<~~>(Foo $a, Foo $b) { 42.6 }; say
Foo.new ~~ Foo; say infix:<~~>(Foo.new, Foo)'
===SORRY!=== Error while compiling -e
Cannot override infix operator '~~', as
Hi,
On 04.08.2015 00:52, Faye (via RT) wrote:
# New Ticket Created by Faye
# Please include the string: [perl #125745]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=125745 >
m: class Foo { }; multi sub infix:<~~>(Foo $a, Fo
# New Ticket Created by Faye
# Please include the string: [perl #125745]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=125745 >
m: class Foo { }; multi sub infix:<~~>(Foo $a, Foo $b) { 42.6 };
say Foo.new ~~ Foo; say infix: