develooper Front page | perl.perl6.compiler | Postings from February 2018

[perl #127100] [LTA] error message when specifying return typebefore parameters ( --> Bool, Int $x, Int $y )

From:
Aleks-Daniel Jakimenko-Aleksejev via RT
Date:
February 3, 2018 15:04
Subject:
[perl #127100] [LTA] error message when specifying return typebefore parameters ( --> Bool, Int $x, Int $y )
Message ID:
rt-4.0.24-3342-1517670259-1772.127100-80-0@perl.org
Tests in
https://github.com/perl6/roast/commit/3dab7c774587fbf8ae2afb561b02b3177659ace3

On 2017-10-07 15:55:27, alex.jakimenko@gmail.com 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, alex.jakimenko@gmail.com 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




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About