# New Ticket Created by David # Please include the string: [perl #128287] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=128287 >
The bug can be reproduced with the following code spread over 3 files: main.pl6 ------------ use Zot; zot(); Zot.pm6 ----------- use XXX; sub zot() returns Array of Numeric is export { my Numeric @a; return @a; } XXX.pm6 ------------- my Numeric @x; When main.pl6 is run, the following error is reported: Type check failed for return value; expected Array[Numeric] but got Array[Numeric].new() in sub zot at ./Zot.pm6 (Zot) line 5 in block <unit> at main.pl6 line 2 $ perl6 --version This is Rakudo version 2016.05-6-g2c45068 built on MoarVM version 2016.05 implementing Perl 6.c.