Verified Commit 5b018d2f authored by Nadim Kobeissi's avatar Nadim Kobeissi 💎

Don't invent a new value on ASSERT pass

parent 9e5e184f
Pipeline #547 passed with stages
in 35 seconds
......@@ -17,7 +17,7 @@ var primitiveCoreSpecs = []PrimitiveCoreSpec{
CoreRule: func(p Primitive) (bool, []Value) {
v := []Value{{Kind: "primitive", Primitive: p}}
if valueEquivalentValues(p.Arguments[0], p.Arguments[1], true) {
return true, v
return true, []Value{p.Arguments[0]}
}
return false, v
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment