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

but mixins don't complain about sink context #5838

Open
p6rt opened this issue Nov 29, 2016 · 4 comments
Open

but mixins don't complain about sink context #5838

p6rt opened this issue Nov 29, 2016 · 4 comments
Labels
LTA Less Than Awesome; typically an error message that could be better

Comments

@p6rt
Copy link

p6rt commented Nov 29, 2016

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

Searchable as RT130213$

@p6rt
Copy link
Author

p6rt commented Nov 29, 2016

From @gfldex

role R1 { method m {} }; role R2 { method m {} }; my $a but R1,R2;

# R2 ends up in sink context without any complaint. That may become a
# hairpulling trap for many users.

@p6rt
Copy link
Author

p6rt commented Nov 29, 2016

From @gfldex

revert Raku/doc@d7feaf8786 when this bug is
fixed

@p6rt
Copy link
Author

p6rt commented Dec 15, 2016

From @zoffixznet

On Tue, 29 Nov 2016 06​:52​:43 -0800, gfldex wrote​:

role R1 { method m {} }; role R2 { method m {} }; my $a but R1,R2;

# R2 ends up in sink context without any complaint. That may become a
# hairpulling trap for many users.

FWIW the doc commit you pointed to has nothing to do with `but` operator. This doesn't produce a warning either​: my $a = Int, Str;

@p6rt
Copy link
Author

p6rt commented Dec 15, 2016

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

@p6rt p6rt added the LTA Less Than Awesome; typically an error message that could be better label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTA Less Than Awesome; typically an error message that could be better
Projects
None yet
Development

No branches or pull requests

1 participant