# New Ticket Created by Justin DeVuyst # Please include the string: [perl #130589] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=130589 >
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};A.new(:a(1))' ===SORRY!=== Error while compiling -e Variable definition of type Any:D requires an initializer at -e:1 ------> class A {has Any:D $.a⏏};A.new(:a(1)) expecting any of: constraint [jdv@new-host-2 ~]$ perl6 -e 'class A {has Any:D $.a=2};A.new(:a(1))' [jdv@new-host-2 ~]$ perl6 -e 'class A {has Any:D $.a is required};A.new(:a(1))' [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 ~]$