You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ mi6 test t/03-role.t
==> Set PERL6LIB=/home/itoyota/Programs/p6-Foo/lib
==> prove -e /home/itoyota/.rakudobrew/bin/../moar-nom/install/bin/perl6 -r t/03-role.t
t/03-role.t .. ===SORRY!=== Error while compiling /home/itoyota/Programs/p6-Foo/t/03-role.t
Too many positionals passed; expected 2 arguments but got 3
at /home/itoyota/Programs/p6-Foo/t/03-role.t:10
t/03-role.t .. Dubious, test returned 1 (wstat 256, 0x100)
No subtests run
Test Summary Report
t/03-role.t (Wstat: 256 Tests: 0 Failed: 0)
Non-zero exit status: 1
Parse errors: No plan found in TAP output
Files=1, Tests=0, 1 wallclock secs ( 0.02 usr 0.00 sys + 0.40 cusr 0.02 csys = 0.44 CPU)
Result: FAIL
It seems weird to me, because roles can define with `is export is repr("CPointer")` traits and can use `self`.without any errors as the following example.
$ perl6 -MNativeCall -e 'role R is export is repr("CPointer") { method insert($item) { self!c_insert(self, $item); }; method !c_insert(R $r, $item){ say $r; } }; my $r = R.new; $r.insert(10);'
R.new
My Perl 6 version is:
$ perl6 --version
This is Rakudo version 2016.09-105-g4abc28c built on MoarVM version 2016.09-13-g34c375a
implementing Perl 6.c.
Migrated from rt.perl.org#129831 (status was 'new')
Searchable as RT129831$
The text was updated successfully, but these errors were encountered: