New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
overloading an operator hides other candidates #1669
Comments
From @moritz10:20 <@moritz_> rakudo: class A { }; multi sub infix:<+>(A |
From @bbkr[14:44] <bbkr> star: class A { }; multi sub infix:<+>(A taking for tests |
The RT System itself - Status changed from 'new' to 'open' |
From @bbkrtests added in t/spec/S06-operator-overloading/sub.t |
@bbkr - Status changed from 'open' to 'resolved' |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S06-operator-overloading/sub.t commit 0dfc369d60e934bfaa91de967f58e5d4d12198be [t/spec] tests for RT #74104 overloading an operator hides other candidates Inline Patchdiff --git a/t/spec/S06-operator-overloading/sub.t b/t/spec/S06-operator-overloading/sub.t
index acb7524..57094f6 100644
--- a/t/spec/S06-operator-overloading/sub.t
+++ b/t/spec/S06-operator-overloading/sub.t
@@ -399,6 +399,14 @@ Testing operator overloading subroutines
is $x, 6, 'bar= works for custom operators';
}
+
+# RT #74104
+{
+ class RT74104 {}
+ multi sub infix:<+>(RT74104 $, RT74104 $) { -1 }
+ is 2+2, 4, 'overloading an operator does not hide other candidates';
+}
+
done_testing;
# vim: ft=perl6 |
Migrated from rt.perl.org#74104 (status was 'resolved')
Searchable as RT74104$
The text was updated successfully, but these errors were encountered: