Skip Menu |
Report information
Id: 126547
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: cygx [at]

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)

Subject: [BUG] Cannot export trait_mod:<is> if NativeCall is used in precompiled module
Date: Tue, 3 Nov 2015 10:34:58 +0100
From: cygx <cygx.cpan [...]>
To: rakudobug [...]
Download (untitled) / with headers
text/plain 595b
Specificall, given this

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

we have

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

    $ perl6 --target=mbc

    $ 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

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at