You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perl6 -e 'use Test do { Date.new(year => 2015); ()}'
===SORRY!===
Default constructor for 'Date' only takes named arguments
This example is fairly golfed, but you can run into this in the wild.
Consider a module that has an EXPORT sub and takes positional arguments. If
you tried to do
use MyModule Date.new( year => 2015) # you will get the error
2¢
I don't really get why the arguments to 'use' don't just use normal
invocation semantics, with the positionals taken out and passed to export
and the named used for normal importing.
Migrated from rt.perl.org#126893 (status was 'new')
Searchable as RT126893$
The text was updated successfully, but these errors were encountered: