FAQ
# New Ticket Created by Zoffix Znet
# Please include the string: [perl #128262]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=128262 >


<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) { }()

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
groupperl6-compiler @
categoriesperl
postedMay 27, '16 at 2:02a
activeMay 27, '16 at 2:02a
posts1
users1
websiteperl6.org

1 user in discussion

Zoffix Znet: 1 post

People

Translate

site design / logo © 2019 Grokbase