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

Cannot export trait_mod:<is> if NativeCall is used in precompiled module #4721

Open
p6rt opened this issue Nov 3, 2015 · 1 comment
Open
Labels

Comments

@p6rt
Copy link

p6rt commented Nov 3, 2015

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

Searchable as RT126547$

@p6rt
Copy link
Author

p6rt commented Nov 3, 2015

From cygx@cpan.org

Specificall, given this Foo.pm

  use NativeCall;
  multi trait_mod​:<is>(Routine $r, :$foo!) is export {}

we have

  $ perl6 -I. -MFoo -e 'sub bar is foo {}'

  $ perl6 --target=mbc --output=Foo.pm.moarvm Foo.pm

  $ perl6 -I. -MFoo -e 'sub bar is foo {}'
  ===SORRY!=== Error while compiling -e
  Can't use unknown trait 'is foo' in a sub declaration.
  at -e​:1
  expecting any of​:
  rw raw hidden-from-backtrace hidden-from-USAGE
  cached pure default DEPRECATED inlinable nodal
  prec equiv tighter looser assoc leading_docs trailing_docs

@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant