You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
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!
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!
Migrated from rt.perl.org#127100 (status was 'resolved')
Searchable as RT127100$
The text was updated successfully, but these errors were encountered: