# New Ticket Created by  cygx 
# Please include the string:  [perl #126547]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=126547 >


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

Reply via email to