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

Owner: Nobody
Requestors: cygx [at]

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 [...]>
To: rakudobug [...]
Subject: Class fails to smartmatch against role defined in module
Download (untitled) / with headers
text/plain 331b
Minimal testcase: $ cat role Foo is export {} $ cat foo.p6 use lib '.'; use Foo; class Bar does Foo {} say Bar.^roles; say ~~ 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 infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at