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

invocant not allowed in signature literals #5503

Closed
p6rt opened this issue Jul 31, 2016 · 4 comments
Closed

invocant not allowed in signature literals #5503

p6rt opened this issue Jul 31, 2016 · 4 comments

Comments

@p6rt
Copy link

@p6rt p6rt commented Jul 31, 2016

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

Searchable as RT128783$

@p6rt
Copy link
Author

@p6rt p6rt commented Jul 31, 2016

From @gfldex

my $m = method ($a​: $b){}; say $m ~~ :($a​: $b);
# OUTPUT«===SORRY!=== Error while compiling <tmp>␤Can only use the : invocant marker in the signature for a method␤at <tmp>​:1␤------> method ($a​: $b){}; say $m ~~ :($a​: $b);␤ expectig any of​:␤ constraint␤»
# expected output​:
True

@p6rt
Copy link
Author

@p6rt p6rt commented Aug 1, 2016

From @zoffixznet

Thanks for the report.

Fixed in Raku/roast@5af7b0e
Tests added in Raku/roast@5dc91d3

--
Cheers,
ZZ | https://twitter.com/zoffix

@p6rt
Copy link
Author

@p6rt p6rt commented Aug 1, 2016

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

@p6rt
Copy link
Author

@p6rt p6rt commented Aug 1, 2016

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

@p6rt p6rt closed this Aug 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant