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

Cannot print a type captured copied into a variable in the parameter list of a role in Rakudo #4494

Open
p6rt opened this issue Aug 28, 2015 · 3 comments
Labels
Bug

Comments

@p6rt
Copy link

@p6rt p6rt commented Aug 28, 2015

Migrated from rt.perl.org#125935 (status was 'open')

Searchable as RT125935$

@p6rt
Copy link
Author

@p6rt p6rt commented Aug 28, 2015

From @masak

<masak> m​: role R[​::N, $result = N] { say $result }; my $r = R[Int].new
<camelia> rakudo-moar 5fb81f​: OUTPUT«Cannot find method 'collisions' [...]
* masak submits rakudobug

Change 'say $result' to 'say N', and it works.

Change '$result = N' to '$result = 4', and it works.

@p6rt
Copy link
Author

@p6rt p6rt commented Dec 3, 2017

From @AlexDaniel

Still reproducible as described (2017.11,HEAD(e5b660e)), although with a slightly different error message​:

Could not instantiate role 'R'​:
No such method 'gist' for invocant of type 'N'
  in any protect at gen/moar/stage2/NQPCORE.setting line 1039
  in block <unit> at -e line 1

On 2015-08-28 10​:09​:59, masak wrote​:

<masak> m​: role R[​::N, $result = N] { say $result }; my $r = R[Int].new
<camelia> rakudo-moar 5fb81f​: OUTPUT«Cannot find method 'collisions' [...]
* masak submits rakudobug

Change 'say $result' to 'say N', and it works.

Change '$result = N' to '$result = 4', and it works.

@p6rt
Copy link
Author

@p6rt p6rt commented Dec 3, 2017

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

@p6rt p6rt added the Bug 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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.