We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Migrated from rt.perl.org#125715 (status was 'resolved')
Searchable as RT125715$
The text was updated successfully, but these errors were encountered:
MyMod.pm
class Foo {} #Foo aliased to Bar sub EXPORT(|){ { 'Bar' => Foo } }
main.pl
use lib 'lib'; use MyMod;
my class Baz { has Bar $.bar; }
sub test(Bar $) { say "works!" }
test(Bar.new); #->works!
perl6 -v This is perl6 version 2015.07.1-12-g174049f built on MoarVM version 2015.07
Sorry, something went wrong.
On Wed Jul 29 01:22:48 2015, lloyd.fourn@gmail.com wrote:
MyMod.pm ----- class Foo {} #Foo aliased to Bar sub EXPORT(|){ { 'Bar' => Foo } } main.pl ---------- use lib 'lib'; use MyMod; my class Baz { has Bar $.bar; } sub test(Bar $) { say "works!" } test(Bar.new); #->works! Baz.new(bar => Bar.new ); #!Type check failed in assignment to '$!bar'; expected 'Foo' but got 'Foo' perl6 -v This is perl6 version 2015.07.1-12-g174049f built on MoarVM version 2015.07
MyMod.pm ----- class Foo {} #Foo aliased to Bar sub EXPORT(|){ { 'Bar' => Foo } }
main.pl ---------- use lib 'lib'; use MyMod;
Fixed, and test added in S11-modules/export.t.
The RT System itself - Status changed from 'new' to 'open'
@jnthn - Status changed from 'open' to 'resolved'
No branches or pull requests
Migrated from rt.perl.org#125715 (status was 'resolved')
Searchable as RT125715$
The text was updated successfully, but these errors were encountered: