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

Owner: Nobody
Requestors: moritz <moritz.lenz+perl [at] gmail.com>
Cc:
AdminCc:

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



Subject: LTA error message when declaring an enum of a type variable
Date: Wed, 01 Aug 2012 20:11:52 +0200
To: rakudobug [...] perl.org
From: Moritz Lenz <moritz [...] faui2k3.org>
Download (untitled) / with headers
text/plain 270b
20:08 < moritz> r: role A[::T] { my T enum B <C D> } 20:08 <+p6eval> rakudo c1bfbb: OUTPUT«===SORRY!===␤Cannot auto-generate a proto method for 'Numeric' in the setting␤» I don't think the spec requires it to live, but this looks like an internal compiler error.
RT-Send-CC: perl6-compiler [...] perl.org
Download (untitled) / with headers
text/plain 504b
On Wed Aug 01 11:12:13 2012, moritz wrote: Show quoted text
> 20:08 < moritz> r: role A[::T] { my T enum B <C D> } > 20:08 <+p6eval> rakudo c1bfbb: OUTPUT«===SORRY!===␤Cannot auto-generate > a proto method for 'Numeric' in the setting␤» > > I don't think the spec requires it to live, but this looks like an > internal compiler error.
No change. FYI, you get a different error with a specific type outside of a role delcaration: Show quoted text
> my Str enum B <C D>
Incompatible MROs in P6opaque rebless -- Will "Coke" Coleda


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