Subject: | Typed attributes with key constraint are broken |
From the documentation about typed attributes
You can use any type supported by the Dios::Types module.
$ perl -MDios -e 'class A { has Hash[ Str => Str ] %!B; }'
Invalid has at -e line 1.
Expected:
has <type> <variable> <constraint> <traits> <handles> <init>
but found:
has Hash[ Str => Str ] %!B; } }
Compilation failed at -e line 1.