On Mon Dec 14 05:30:27 2009, masak wrote: > This be Rakudo 7ef386. > > $ perl6 -e 'class A {}; class B does A {}' > Method '!select' not found for invocant of class '' > > That should not be an error at all according to the spec, IIRC; it > should snapshot the class and use the result as a role.
I haven't seen any bit of the spec that actually says that. Until it does, it's just spec-ulation. :-) > But even if it > were to throw an error, it could easily be a friendlier one than the > one it throws now. Indeed. We now give: > class A {}; class B does A {} Can only use does with a role, but A is not one This is pretty much a dupe of another ticket that I already assigned as needing spectests, so just resolving this one. Thanks, Jonathan