> On 14 Jul 2015, at 03:24, 刘刊 (via RT) <perl6-bugs-follo...@perl.org> wrote:
> 
> # New Ticket Created by  刘刊 
> # Please include the string:  [perl #125611]
> # in the subject line of all future correspondence about this issue. 
> # <URL: https://rt.perl.org/Ticket/Display.html?id=125611 >
> 
> 
> 17:58 < kanl> is Set no longer extendable?
> 17:58 < kanl> m: class Foo is Set { method foo( $foo ) { self{$foo} = True;
>              self } }; my $f = Foo.new.foo: 'a'; $f.say;
> 17:58 <+camelia> rakudo-moar 533d1a: OUTPUT«Method 'BUILD' not found for
>                 invocant of class 'Foo'␤  in block <unit> at
>                 /tmp/75lUH25_wJ:1␤␤»
> 18:17 < jnthn> kanl: I think it's a bug that you can't inherit from Set.

1. Fixed with b6fae27eceb094d5739f9 .

2. I think it should be “is SetHash” if you want to be able to change it after 
it has been created.  It’s another error that the assignment failure is not 
caught.  This was fixed with dd3bcc46ccf1eeb5938131dc .


Closable with tests.


Liz

Reply via email to