# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #114276]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=114276 >
<felher> And now for something completely different:
<felher> r: say [[1,2,0]].classify: -> $rpn { $rpn eqv [1,2,0]|[2,0,1] };
<p6eval> rakudo ed269f: OUTPUT«Cannot assign to a readonly variable or
a value [...]
<moritz> r: say [1,2,0] eqv [1,2,0]|[2,0,1]
<p6eval> rakudo ed269f: OUTPUT«any(True, False)»
<moritz> felher: ah, might be easy to fix
<moritz> maybe just some variable that needs a Mu type instead of Any
<felher> :)
* masak submits rakudobug
<masak> r: say [[1,2,0]].classify: -> $rpn { $rpn eqv [1,2,0] }
<p6eval> rakudo ed269f: OUTPUT«True 1 2 0»
<masak> r: say [1,2,3,4,5].classify: -> $rpn { $rpn eqv 1|3 }
<p6eval> rakudo ed269f: OUTPUT«Cannot assign to a readonly variable or
a value [...]
<moritz> r: say (1, 2).classify: -> $x { 1|2 }
<p6eval> rakudo ed269f: OUTPUT«Cannot assign to a readonly variable or
a value [...]
<masak> moritz++
<masak> it's probably returning the junction out of the .classify
block that causes trouble.
<moritz> masak: correct