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 capture forces order of positional arguments #5488

Open
p6rt opened this issue Jul 26, 2016 · 2 comments
Open

type capture forces order of positional arguments #5488

p6rt opened this issue Jul 26, 2016 · 2 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jul 26, 2016

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

Searchable as RT128742$

@p6rt
Copy link
Author

p6rt commented Jul 26, 2016

From @gfldex

sub f(&c​:(T), :​:T @​l){};
# OUTPUT«===SORRY!=== Error while compiling <tmp>␤Invalid typename 'T' in parameter declaration.␤at <tmp>​:1␤------> sub f(&c​:(T⏏), @​l){};␤»
# expected same as​:
sub f(​::T @​l, &c​:(T)){};

# also note​:
sub f(&c​:(​::T $), T @​l){};
# OUTPUT«===SORRY!=== Error while compiling <tmp>␤Invalid typename 'T' in parameter declaration.␤at <tmp>​:1␤------>sub f(&c​:(​::T), T⏏@​l){};␤»

@p6rt
Copy link
Author

p6rt commented Aug 23, 2016

@coke - 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
Labels
Projects
None yet
Development

No branches or pull requests

1 participant