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
multiple return do not work properly in Rakudo #776
Comments
From @ilyabelikinHi there,
part of discussion: Ilya |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S06-advanced_subroutine_features/return.t commit b1229416777475b975a59f8a5f10b6aeddc6a6dc [t/spec] Test for RT #63912 Inline Patchdiff --git a/t/spec/S06-advanced_subroutine_features/return.t b/t/spec/S06-advanced_subroutine_features/return.t
index ac69114..a7e0f67 100644
--- a/t/spec/S06-advanced_subroutine_features/return.t
+++ b/t/spec/S06-advanced_subroutine_features/return.t
@@ -15,7 +15,7 @@ See also t/blocks/return.t, which overlaps in scope.
# reference for the spec for 'return', but I couldn't find
# one either.
-plan 76;
+plan 77;
# These test the returning of values from a subroutine.
# We test each data-type with 4 different styles of return.
@@ -321,4 +321,11 @@ is Foo::official(), 44,
is $x, 1, 'get right value from sub with double ;';
}
+# RT #63912
+{
+ sub rt63912 { return 1, 2; }
+ #?rakudo todo 'return wants just one argument?'
+ lives_ok { rt63912() }, 'can call sub that returns two things (no parens)';
+}
+
# vim: ft=perl6 |
The RT System itself - Status changed from 'new' to 'open' |
From @moritzmultiple returns now work properly, and plenty of tests for them pass. |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#63912 (status was 'resolved')
Searchable as RT63912$
The text was updated successfully, but these errors were encountered: