Skip to content
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

Method 'parameterize' not found for invocant of class 'Perl6::Metamodel::ParametricRoleHOW' on role export/import #2902

Closed
p6rt opened this issue Sep 18, 2012 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Sep 18, 2012

Migrated from rt.perl.org#114954 (status was 'resolved')

Searchable as RT114954$

@p6rt
Copy link
Author

p6rt commented Sep 18, 2012

From felix@herrmann-koenigsberg.de

Rakudo gives >>>Method 'parameterize' not found for invocant of class 'Perl6​::Metamodel​::ParametricRoleHOW'<<<
when importing a parametric role from another module and trying to use
it​:

moritz | r​: module A { role B[$x] is export { } }; import A; say B[1]
p6eval | rakudo 690dad​: OUTPUT«===SORRY!===␤Method 'parameterize' not found for invocant of class 'Perl6​::Metamodel​::ParametricRoleHOW'␤»

while it works just fine without export/import​:

moritz | r​: role B[$x] { }; say B[1]
p6eval | rakudo 690dad​: OUTPUT«B()␤»

@p6rt
Copy link
Author

p6rt commented Jan 12, 2013

From @jnthn

On Tue Sep 18 07​:09​:58 2012, felher wrote​:

Rakudo gives >>>Method 'parameterize' not found for invocant of class
'Perl6​::Metamodel​::ParametricRoleHOW'<<<
when importing a parametric role from another module and trying to use
it​:

moritz | r​: module A { role B[$x] is export { } }; import A; say B[1]
p6eval | rakudo 690dad​: OUTPUT«===SORRY!===␤Method 'parameterize' not
found for invocant of class 'Perl6​::Metamodel​::ParametricRoleHOW'␤»

while it works just fine without export/import​:

moritz | r​: role B[$x] { }; say B[1]
p6eval | rakudo 690dad​: OUTPUT«B()␤»

Fixed​:

module A { role B[$x] is export { } }; import A; say B[1]
B()

Tagging testneeded.

/jnthn

@p6rt
Copy link
Author

p6rt commented Jan 12, 2013

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Jan 12, 2013

From @moritz

Tested in S14-roles/parameterized-type.t.

@p6rt
Copy link
Author

p6rt commented Jan 12, 2013

@moritz - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Jan 12, 2013
@p6rt p6rt added the testneeded label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant