Skip Menu |
Report information
Id: 127267
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: hanenkamp <sterling [at] hanenkamp.com>
Cc:
AdminCc:

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



Subject: Missing comma in parens leads to cryptic compiler error
Date: Thu, 14 Jan 2016 15:15:29 +0000
From: Sterling Hanenkamp <sterling [...] hanenkamp.com>
To: "rakudobug [...] perl.org" <rakudobug [...] perl.org>
Download (untitled) / with headers
text/plain 435b
A missing comma in a parenthetical hash, such as might be found in an enum declaration like this:

enum Side ( :Left<left> :Right<right> );

Leads to a cryptic message containing "words" like "QAST" and "NQPMu" without useful line numbers or even a file name. This problem is very easy to reproduce:

% perl6
> (:A<a> :B<b>)
Unknown QAST node type NQPMu

Cheers.
--
Sterling Hanenkamp
785-370-4454


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