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

Owner: Nobody
Requestors: cpan [at] zoffix.com
Cc:
AdminCc:

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



Subject: [BUG] type smileys don't work on ::?CLASS
From: cpan [...] zoffix.com
Date: Tue, 22 Nov 2016 09:20:24 -0500
To: rakudobug [...] perl.org
Download (untitled) / with headers
text/plain 668b
m: class C { method foo (--> ::?CLASS:D) { self } }; say .foo given C rakudo-moar 080630: OUTPUT«(C)␤» Expected: typecheck failure, since `self` is not :D And using ::?CLASS:D in the body of the method errors out, saying you can't adverb ::?CLASS: m: class C { method foo (--> ::?CLASS:D) { say (::?CLASS:D).HOW; self; } }; say .foo given C rakudo-moar 080630: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤You can't adverb ::?CLASS␤at <tmp>:1␤------> 3d foo (--> ::?CLASS:D) { say (::?CLASS:D7⏏5).HOW; self; } }; say .foo given C␤ expecting any of:␤ pair value␤» https://irclog.perlgeek.de/perl6/2016-11-22#i_13611710


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