Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid typename or unknown type when nested under builtin type hierarchy #6648

Open
p6rt opened this issue Dec 12, 2017 · 2 comments
Open

Comments

@p6rt
Copy link

p6rt commented Dec 12, 2017

Migrated from rt.perl.org#132570 (status was 'new')

Searchable as RT132570$

@p6rt
Copy link
Author

p6rt commented Dec 12, 2017

From @softmoth

Save make-testcase.sh in /tmp, and​:

rm -rf ./invalid-typename-bug; sh make-testcase.sh && \
  PERL6LIB=invalid-typename-bug/lib perl6 invalid-typename-bug/t.pl

If type=role, then the error is​:

===SORRY!=== Error while compiling /tmp/invalid-typename-bug/lib/Bar.pm (Bar)
Invalid typename 'Baggy​::Foo​::TypeB'
at /tmp/invalid-typename-bug/lib/Bar.pm (Bar)​:7

If type=class, the error is​:

===SORRY!=== Error while compiling /tmp/invalid-typename-bug/lib/Bar.pm (Bar)
'Bar' cannot inherit from 'Baggy​::Foo​::TypeB' because it is unknown.
at /tmp/invalid-typename-bug/lib/Bar.pm (Bar)​:7

Tested with​:

$ perl6 --version
This is Rakudo version 2017.10 built on MoarVM version 2017.10
implementing Perl 6.c.
$ px --version
This is Rakudo version 2017.11-78-g1dbf5f589 built on MoarVM version
2017.11-27-gfac29990
implementing Perl 6.c.

@p6rt
Copy link
Author

p6rt commented Dec 12, 2017

From @softmoth

make-testcase.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant