Smartmatch doesn't produce correct result on a run-time created class stored in a Scalar container #2602
Labels
smartmatch
Smart matching with ~~ and .ACCEPTS methods
tests needed
Issue is generally resolved but tests were not written yet
The Problem
When a class is created with
Metamodel::ClassHOW.new_typeat run-time and stored in a scalar then smartmatching of an object created of this class with the containing scalar gives False.Expected Behavior
Object must smartmatch its class.
Steps to Reproduce
This code:
prints False.
Environment
perl6 -v): This is Rakudo version 2018.12 built on MoarVM version 2018.12Also tested against Perl6/MoarVM 2017.10
The text was updated successfully, but these errors were encountered: