# New Ticket Created by Andrew Buchanan # Please include the string: [perl #132056] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=132056 >
> role R[::T] { has T $.r is rw } (R) > R[Str].new.perl No such method 'perl' for invocant of type 'T' in block <unit> at <unknown file> line 1 > R[Str].new.r = Nil No such method 'WHERE' for invocant of type 'T' > R[Str].new(:r("r")).perl R[Str].new(r => "r") However, it works if $.r is initalised to T, which is presumably what the object creation should be doing. -- > perl6 -v This is Rakudo version 2017.07 built on MoarVM version 2017.07 implementing Perl 6.c. > perl6 -V distro::auth=Apple Computer, Inc. distro::desc=2017-09-09T09:21:56.148447+08:00 distro::is-win=False distro::name=macosx distro::path-sep=: distro::release=16G29 distro::signature= distro::version=10.12.6 ...