Defining classes with several API versions together
问题 That's not apparently possible... role Versioned { method version () { return self.^api; } } class WithApi:ver<0.0.1>:auth<github:JJ>:api<0> does Versioned {} class WithApi:ver<0.0.1>:auth<github:JJ>:api<1> does Versioned {} say WithApi:api<0>.new.version; say WithApi:api<1>.new.version; This dies with ==SORRY!=== Error while compiling /home/jmerelo/progs/perl6/my-perl6-examples/api-versioned.p6 Redeclaration of symbol 'WithApi' at /home/jmerelo/progs/perl6/my-perl6-examples/api-versioned.p6