On Sun Oct 23 10:07:07 2011, jn...@jnthn.net wrote: > On Fri Oct 21 05:22:14 2011, masak wrote: > > <jnthn> nom: enum Foo < a b >; class A { }; say A but Foo::a > > <p6eval> nom e1a62b: OUTPUT«(signal SEGV)» > > <jnthn> shit. > > <jnthn> nom: enum Foo < a b >; class A { }; say A.new but Foo::a > > <p6eval> nom e1a62b: OUTPUT«A+{<anon>}.new()» > > <jnthn> nom: enum Foo < a b >; class A { }; say (A.new but Foo::a).Foo > > <p6eval> nom e1a62b: OUTPUT«Foo::a» > > <jnthn> grr, musta forgot the "no, you can't mix in to a type object" > > detection somewhere > > * masak submits rakudobug > > While we can catch it in Rakudo and maybe give a nicer error, the > underlying segfault is now fixed: > > > enum Foo < a b >; class A { }; say A but Foo::a > Cannot change the type of a type object > > Test needed to make sure it dies (and not segfaults). > > /jnthn
Test added in S12-enums/thorough.t -- Will "Coke" Coleda