# New Ticket Created by  Alex Elsayed 
# Please include the string:  [perl #68136]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=68136 >


This code causes Parrot to fail in a rather spectacular manner:

role TreeNode[::T] does Positional {
        has TreeNode[T] @!children handles 'postcircumfix:<[ ]>';
        has T $.data is rw;
};
my $tree = TreeNode[Int].new;
$tree.data = 3;
$tree[0] = TreeNode[Int].new;
$tree[1] = TreeNode[Int].new;
$tree[0].data = 1;
$tree[1].data = 4;
.say for $tree.data, $tree[0,1]>>.data;

Attachment: signature.asc
Description: PGP signature

Reply via email to