[perl #127100] [LTA] error message when specifying return type before parameters ( --> Bool, Int $x, Int $y ) <[email protected]>

[email protected] ("Aleks-Daniel Jakimenko-Aleksejev via RT")
Newsgroups perl.perl6.compiler
Message-ID <[email protected]>
Tests in
https://github.com/perl6/roast/commit/3dab7c774587fbf8ae2afb561b02b3177659ace3

On 2017-10-07 15:55:27, [email protected] wrote:
> This was resolved in these commits:
> *
>
https://github.com/rakudo/rakudo/commit/ac97a4016196c1fb5c39365dfbe8980574fb929b
> *
>
https://github.com/rakudo/rakudo/commit/64b001a1464bf618fa4c0eed984e240fcf8b772b
>
> 「testneeded」
>
> Please try to cover various variants in tests, like:
> (--> Bool Int $x, Int $y)
> (--> Bool, Int $x, Int $y)
> ($x, --> Bool, Int $y)
> and so on.
> Maybe also test ; and ;; instead of commas, because these are also
> allowed as
> param separators.
>
>
>
> On 2015-12-30 17:42:24, [email protected] wrote:
> > Code:
> > sub foo (--> Bool Int $x, Int $y) { True }
> >
> > Result:
> > ===SORRY!=== Error while compiling -e
> > Type 'Bool' is not declared. Did you mean 'Cool'?
> > at -e:1
> > ------> sub foo (--> Bool⏏ Int $x, Int $y) { True }
> >
> >
> > I know that I'm doing it wrong, but 「Bool」 IS declared! Come on!
> >
> > Actually, this is not the first time I see this, and in fact it is
> > not the
> > first time I report such LTA error. See
> > https://rt.perl.org/Public/Bug/Display.html?id=125902
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.