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

Owner: Nobody
Requestors: masak <cmasak [at] gmail.com>
Cc:
AdminCc:

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



From: Carl Mäsak <cmasak [...] gmail.com>
To: rakudobug [...] perl.org
Date: Fri, 8 Jan 2016 22:51:18 +0100
Subject: [BUG] Not getting the nice "Illegally post-declared type" error for types with :: in them in Rakudo
Download (untitled) / with headers
text/plain 561b
<masak> m: class C { has $.x = D.new }; class D {} <camelia> rakudo-moar af8798: OUTPUT«===SORRY!=== Error while compiling /tmp/9mEQAw_f9T␤Illegally post-declared type:␤ D used at line 1␤␤» <masak> m: class C { has $.x = D::E.new }; class D::E {}; C.new <camelia> rakudo-moar af8798: OUTPUT«Could not find symbol '&E' [...] * masak submits rakudobug The second line gets through compilation and all the way to runtime, where it fails. It would be much nicer to get the same error message about illegally post-declared types as in the first line.


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