On Wed Jun 30 09:21:21 2010, masak wrote:
> <masak> rakudo: class A { has $.b; proto method b {} }
> <p6eval> rakudo 806efc: OUTPUT«===SORRY!===␤A method named 'b' 
already
> exists in class 'A'. It may have been supplied by a role.␤»
> <masak> cxreg: that's your error, right?
> <cxreg> right
> <masak> I don't think I've seen this addressed in S12.
> <moritz_> putting the proto first should make it work
> <masak> rakudo: class A { proto method b {}; has $.b }
> <p6eval> rakudo 806efc: OUTPUT«===SORRY!===␤A method named 'b' 
already
> exists in class 'A'. It may have been supplied by a role.␤»
> <moritz_> accessor generation doesn't honor protos. That's a bug
> * masak submits rakudobug

Fixed:

16:17 < [Coke]> rakudo: class A { has $.b; proto method b {} }
16:17 <+p6eval> rakudo 88c5a5:  ( no output )
16:18 < [Coke]> rakudo: class A { proto method b {}; has $.b }
16:18 <+p6eval> rakudo 88c5a5:  ( no output )


Closable with tests.
-- 
Will "Coke" Coleda

Reply via email to