# New Ticket Created by Elizabeth Mattijsen
# Please include the string: [perl #131324]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=131324 >
Should this work? If not, why not? What would be the way to inherit from
lexical classes in other compunits?
./A.pm6:
my class A {}
./B.pm6:
my class B {
use A;
also is A;
}
$ PERL6LIB=. 6 'use B'
===SORRY!=== Error while compiling /Users/liz/Github/rakudo.moar/B.pm6 (B)
Invalid typename 'A'
at /Users/liz/Github/rakudo.moar/B.pm6 (B):4
------> also does A⏏;