Skip Menu |
Report information
Id: 128262
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: cpan [at] zoffix.com
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: [LTA ERROR] Using Junction or `where` in --> (returns) part of signature
Download (untitled) / with headers
text/plain 788b
<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) { }()
Download (untitled) / with headers
text/plain 239b
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) { }()␤»


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org