# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #122658]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=122658 >


<masak> m: class IncList { has @.values; submethod PRE { @!values eqv
@!values.sort } }; say IncList.new(:values(1, 5, 3))
<camelia> rakudo-moar 5f9cd5: OUTPUT«IncList.new(values => Array.new(1, 5, 3))␤»
* masak submits NYI rakudobug
<masak> m: say [1, 5, 3] eqv [1, 5, 3].sort
<camelia> rakudo-moar 5f9cd5: OUTPUT«False␤»

My expectation is that, since the condition is False, the object would
fail the precondition at creation time.

Reply via email to