Subject: | Kavorka signature bug |
Date: | Wed, 6 Aug 2014 17:51:56 +0300 |
To: | "bug-Kavorka [...] rt.cpan.org" <bug-kavorka [...] rt.cpan.org> |
From: | ilmari ikonen <ilmari.ikonen [...] outlook.com> |
The following code fails on Kavorka-0.030 (the latest at this time):
use v5.14;use Kavorka;
fun test(Num $a, :$b = 1 --> Num ){}
The error message is
Can't modify constant item in postdecrement (--) at test.pl line 4, near "1 --"
It works without the return type.
I am using perl 5.20 on Linux debian 3.2.0-4-686-pae #1 SMP Debian 3.2.60-1+deb7u1 i686 GNU/Linux