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

Owner: Nobody
Requestors: gfldex <wenzel.peppmeyer [at]>

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

From: "Wenzel P. P. Peppmeyer" <wenzel.peppmeyer [...]>
To: rakudobug [...]
Subject: LTA error message with junctions in type constraints
Date: Thu, 1 Oct 2015 12:49:37 +0200 (CEST)
Download (untitled) / with headers
text/plain 393b
my Int|Str $a; # OUTPUT«===SORRY!===␤Type 'Int' is not declared. Did yo mean 'int'?␤at /tmp/kuUWtnhKeF:1␤------> my Int⏏|Str $a;␤Malformed my␤ /tmp/kuUWtnhKeF:1␤------> my Int⏏|Str $a;␤ # # Int is very much declared at that spot. sub foo(Int|Str $a){}; # OUTPUT«===SORRY!===␤No compile-time value for Str␤» # # That may very well be true but ain't no helpful either.
Download (untitled) / with headers
text/plain 354b
The error message for the first case has improved (test needed): my Int|Str $a; ===SORRY!=== Error while compiling <unknown file> Malformed my at <unknown file>:1 ------> my Int⏏|Str $a; The second case is still reproducible. --- This is Rakudo version 2016.04-210-gc59e4dc built on MoarVM version 2016.05 implementing Perl 6.c.

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

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