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

error message when using special colon method call form #4505

Open
p6rt opened this issue Sep 3, 2015 · 1 comment
Open

error message when using special colon method call form #4505

p6rt opened this issue Sep 3, 2015 · 1 comment
Labels
LTA

Comments

@p6rt
Copy link

@p6rt p6rt commented Sep 3, 2015

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

Searchable as RT125976$

@p6rt
Copy link
Author

@p6rt p6rt commented Sep 3, 2015

From @hoelzro

For example​:

  class Foo { method bar { } }

  Foo.new.bar​:;
  ===SORRY!=== Error while compiling <unknown file>
  Confused
  at <unknown file>​:1
  ------> F.new.bar​:;
  expecting any of​:
  colon pair

A seasoned Perl 6er will know what's wrong right away, but I'm concerned if newbies to the language will try the colon form of a method call as "how you do method calls sans parens".

@p6rt p6rt added the LTA 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.