Skip Menu |
Report information
Id: 126792
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: cognominal <cognominal [at]>

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)

Subject: default parameter type check should be compile time when possible
Download (untitled) / with headers
text/plain 542b
According to the test below it seems to be runtime because the error appears after the BEGIN execution. The "when possible" proviso is necessary because the provided default parameter may be run time only. Show quoted text
> sub func(@ok=<a>) { say @ok.perl}; BEGIN { say 'hi'}; func
hi Type check failed in binding @ok; expected Positional but got Str in sub func at <unknown file>:1 in block <unit> at <unknown file>:1 Show quoted text
$perl6 -v This is rakudo version 2015.11-167-g235d085 built on MoarVM version 2015.11-19-g623eadf implementing Perl v6.b.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at