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 using Junction or where in --> (returns) part of signature #5338

Open
p6rt opened this issue May 27, 2016 · 2 comments
Open

Error using Junction or where in --> (returns) part of signature #5338

p6rt opened this issue May 27, 2016 · 2 comments
Labels
LTA Less Than Awesome; typically an error message that could be better

Comments

@p6rt
Copy link

p6rt commented May 27, 2016

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

Searchable as RT128262$

@p6rt
Copy link
Author

p6rt commented May 27, 2016

From @zoffixznet

<Zoffix> m​: sub foo (--> Str|Int) { }; foo
<camelia> rakudo-moar 1ab1fb​: OUTPUT«===SORRY!=== Error while compiling /tmp/Pkq21Gs0mf␤Type 'Str' is not declared. Did you mean 'str'?␤at /tmp/Pkq21Gs0mf​:1␤------> sub foo (--> Str⏏|Int) { }; foo␤»
<Zoffix> m​: sub (--> Str|Int) { }()
<camelia> rakudo-moar 1ab1fb​: OUTPUT«===SORRY!=== Error while compiling /tmp/HHZJP38YXq␤Type 'Str' is not declared. Did you mean 'str'?␤at /tmp/HHZJP38YXq​:1␤------> sub (--> Str⏏|Int) { }()␤»
<Zoffix> m​: sub (--> Int|Str) { }()
<camelia> rakudo-moar 1ab1fb​: OUTPUT«===SORRY!=== Error while compiling /tmp/dHpYCgJ8pg␤Type 'Int' is not declared. Did you mean 'int'?␤at /tmp/dHpYCgJ8pg​:1␤------> sub (--> Int⏏|Str) { }()␤»
<Zoffix> m​: sub (--> Any where Int|Str) { }()

@p6rt
Copy link
Author

p6rt commented May 27, 2016

From @zoffixznet

Copy-paste fail. The Any variant fails with​:

<camelia> rakudo-moar 1ab1fb​: OUTPUT«===SORRY!=== Error while compiling /tmp/lS0J0zy5T1␤Type 'Any' is not declared␤at /tmp/lS0J0zy5T1​:1␤------> sub (--> Any⏏ where Int|Str) { }()␤»

@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