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
Several proto declarations of the same sub shouldn't be allowed in Rakudo #1205
Comments
From @masakOh hai, it's me again. I just noticed that Rakudo a948cae5 doesn't $ perl6 -e 'proto foo($bar) {}; proto foo($baz, $quux) {}' TimToady is sitting here in the café, and he says implementations |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S06-multi/proto.t commit ffe05f1314947976ea1508ff3d1908e6ab3e1a3a [t/spec] Test for RT #68242 Inline Patchdiff --git a/t/spec/S06-multi/proto.t b/t/spec/S06-multi/proto.t
index d14ff9d..b910674 100644
--- a/t/spec/S06-multi/proto.t
+++ b/t/spec/S06-multi/proto.t
@@ -1,6 +1,6 @@
use v6;
use Test;
-plan 12;
+plan 13;
# Test for proto definitions
class A { }
@@ -49,3 +49,7 @@ is(foo(42), 1, 'dispatch with no possible candidates fell back to proto');
multi prefix:<elk> ($arg) { $arg + 1 }
is (elk 3), 4, "multi definition of prefix:<elk> works";
}
+
+#?rakudo todo 'RT #68242'
+eval_dies_ok 'proto rt68242($a){};proto rt68242($c,$d){};',
+ 'attempt to define two proto subs with the same name dies'; |
The RT System itself - Status changed from 'new' to 'open' |
From @jnthnOn Thu Aug 06 05:35:52 2009, masak wrote:
Now:
Tagging testneeded. /jnthn |
From @tadzikOn Wed Sep 14 14:17:23 2011, jnthn@jnthn.net wrote:
|
From @moritznom now runs this test file, and the test is un-TODO'ed, so I'm closing |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#68242 (status was 'resolved')
Searchable as RT68242$
The text was updated successfully, but these errors were encountered: