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

Owner: Nobody
Requestors: jdv79 <justin [at] devuyst.com>
Cc:
AdminCc:

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



From: Justin DeVuyst <justin [...] devuyst.com>
To: <rakudobug [...] perl.org>
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};R.new.a.say' # as expected (Any) [jdv@wieldy ~]$ perl6 -e 'role R[::T = Any] {has T $.a};R.new.a.say' # 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};R.new.a.say' # huh (Any) [jdv@wieldy ~]$


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

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