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

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

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

From: Justin DeVuyst <justin [...]>
To: <rakudobug [...]>
Subject: [BUG] attr type via role param seems to break attr default value
Date: Mon, 23 Nov 2015 11:54:04 +0000
Download (untitled) / with headers
text/plain 345b
[jdv@wieldy ~]$ perl6 -e 'role R {has Any $.a};' # as expected (Any) [jdv@wieldy ~]$ perl6 -e 'role R[::T = Any] {has T $.a};' # not expected Method 'say' not found for invocant of class 'T' in block <unit> at -e:1 [jdv@wieldy ~]$ perl6 -e 'role R[::T = Any] {has T $.a = T};' # huh (Any) [jdv@wieldy ~]$

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