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

type captures on subs are not lated bound when handed over to a role #5046

Open
p6rt opened this issue Jan 13, 2016 · 2 comments
Open

type captures on subs are not lated bound when handed over to a role #5046

p6rt opened this issue Jan 13, 2016 · 2 comments

Comments

@p6rt
Copy link

p6rt commented Jan 13, 2016

Migrated from rt.perl.org#127256 (status was 'new')

Searchable as RT127256$

@p6rt
Copy link
Author

p6rt commented Jan 13, 2016

From @gfldex

role R[​::TT] {}; sub f(​::T){ Any but R[T] }; dd f(R)

# OUTPUT«Any+{R[T]}␤»

# expected behaviour​:

role R[​::TT] {}; sub f(​::T){ Any but R.^parameterize(T) }; dd f(Int)

# OUTPUT«Any+{R[Int]}␤»

@usev6
Copy link

usev6 commented Oct 14, 2023

The output of the first evaluation has changed:

$ ./rakudo-m -e 'role R[::TT] {}; sub f(::T) { Any but R[T] }; dd f(R)'
Any+{R[R]}

I'm not totally sure, but that's the expected behavior, right?

According to bisectable6 (https://colabti.org/irclogger/irclogger_log/raku-dev?date=2023-10-14#l189) the change happened somewhere between the releases 2022.07 and 2022.12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants