Skip Menu |
Report information
Id: 130356
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: gfldex <wenzel.peppmeyer [at] gmx.de>
Cc:
AdminCc:

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



Date: Thu, 15 Dec 2016 21:55:16 +0100 (CET)
To: rakudobug [...] perl.org
From: "Wenzel P. P. Peppmeyer" <wenzel.peppmeyer [...] gmx.de>
Subject: type smiley not set on constraint in declaration of variable lists
Download (untitled) / with headers
text/plain 292b
my (Any:D $a) = Any; # OUTPUT: ( no output ) expected: OUTPUT«Type check failed in assignment to $a; expected Any:D but got Any (Any)␤ in block <unit> at <tmp> line 1␤␤» # `use variable :D` does work as expected and `$a.of` does not include # the type smiley for the first example.
RT-Send-CC: perl6-compiler [...] perl.org
Download (untitled) / with headers
text/plain 535b
On Thu, 15 Dec 2016 13:01:07 -0800, gfldex wrote: Show quoted text
> my (Any:D $a) = Any; > # OUTPUT: ( no output ) > expected: > OUTPUT«Type check failed in assignment to $a; expected Any:D but got > Any (Any)␤ in block <unit> at <tmp> line 1␤␤» > > # `use variable :D` does work as expected and `$a.of` does not include > # the type smiley for the first example.
This one https://rt.perl.org/Ticket/Display.html?id=128935#ticket-history is about the `where` clause not being applied in listy my's. I suspect the cause is exactly the same.


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

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