# New Ticket Created by Richard
# Please include the string: [perl #123498]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=123498 >
If an unknown parameter is passed to assuming, the resulting error message
is uninformative.
Minimal testcase:
sub (:@a) {}.assuming(named => (True))()
Resulting output: (there is no error message, just a traceback)
in sub at foo.pl:1
in sub CURRIED at src/gen/m-CORE.setting:3478
in block <unit> at foo.pl:1
Interestingly, if the signature is removed, or is changed to a scalar, then
there isn't even a traceback.
The following produce no traceback or error message
sub {}.assuming(named => (True))()
sub (:$a) {}.assuming(named => True)()
This is perl6 version 2014.09 built on MoarVM version 2014.09