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.jakime...@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

Reply via email to