Skip Menu |
Report information
Id: 130589
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: jdv79 <justin [at]>

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)

Date: Thu, 19 Jan 2017 18:20:26 -0500
To: <rakudobug [...]>
From: Justin DeVuyst <justin [...]>
Subject: LTA error message for attr typed as defined
Download (untitled) / with headers
text/plain 784b
I'm not sure if "is required" qualifies as an "initializer" to someone but it doesn't in my mind. Also, it would be nice if it was called an attribute instead of the more generic term variable. See below. [jdv@new-host-2 ~]$ perl6 -e 'class A {has Any:D $.a};' ===SORRY!=== Error while compiling -e Variable definition of type Any:D requires an initializer at -e:1 ------> class A {has Any:D $.a⏏}; expecting any of: constraint [jdv@new-host-2 ~]$ perl6 -e 'class A {has Any:D $.a=2};' [jdv@new-host-2 ~]$ perl6 -e 'class A {has Any:D $.a is required};' [jdv@new-host-2 ~]$ perl6 -v This is Rakudo version 2016.12-377-g7ddc5f7 built on MoarVM version 2016.12-113-gd1da1ba implementing Perl 6.c. [jdv@new-host-2 ~]$

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at