FAQ
# 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.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
groupperl6-compiler @
categoriesperl
postedMay 29, '16 at 3:50p
activeMay 29, '16 at 3:50p
posts1
users1
websiteperl6.org

1 user in discussion

David: 1 post

People

Translate

site design / logo © 2019 Grokbase