[perl #128287] [BUG] Correctly typed function gives rise to type check failure under certain circumstances

2016-05-30 Thread via RT
# New Ticket Created by  David 
# Please include the string:  [perl #128287]
# in the subject line of all future correspondence about this issue. 
# 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  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.


Re: [perl #128289] localhost in IO::Socket::INET

2016-05-30 Thread Marcel Timmerman

Hi,
Yes you can close it.

Thanks,
Marcel



On May 29, 2016 10:32:16 PM "Sam S. via RT"  
wrote:


Does this mean that the current IO::Socket::INET bahavior is fine and the 
ticket can be closed?