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
sub - optional parameters with a type cause exception when parameters omitted #3171
Comments
From samuel.sutch@gmail.com# with Array[Str] ------------------------------ foo(); # dies # RETURNS: # with Str --------------------------------------- foo2(); # dies # RETURNS: # without type -------------------------------- foo3(); # works # RETURNS: Example 1 and 2 should operate the same as 3. |
From @MasterDuke17Fixed in rakudo/rakudo#1072 |
@MasterDuke17 - Status changed from 'new' to 'resolved' |
For the record: This does not work on the JVM backend, yet. If I'm not mistaken a similar fix to rakudo/rakudo#1072 would be needed around https://github.com/rakudo/rakudo/blob/2f3de2faab/src/vm/jvm/runtime/org/raku/rakudo/Binder.java#L828 (and four lines below). I don't know how to create a typed array or hash there, but at least this could serve as a pointer where to look for a fix. |
Also relevant: rakudo/rakudo#4648 I opened a PR with similar code for the JVM backend: rakudo/rakudo#5088 |
Migrated from rt.perl.org#118555 (status was 'resolved')
Searchable as RT118555$
The text was updated successfully, but these errors were encountered: