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

Owner: Nobody
Requestors: cygx [at] cpan.org
Cc:
AdminCc:

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



Date: Mon, 24 Oct 2016 23:05:29 +0200
From: cygx <cygx.cpan [...] gmail.com>
To: rakudobug [...] perl.org
Subject: Class fails to smartmatch against role defined in module
Download (untitled) / with headers
text/plain 331b
Minimal testcase: $ cat Foo.pm role Foo is export {} $ cat foo.p6 use lib '.'; use Foo; class Bar does Foo {} say Bar.^roles; say Bar.new ~~ Foo; $ perl6 foo.p6 ((Foo)) False Using .WHICH or nqp::eqaddr (after decont) confirms that we're indeed dealing with the same type object.


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