Wrapping a tuple in a poly variant causes spread?

This seems inconsistent to me.
Is it a bug or an intent?

https://rescript-lang.org/try?code=DYUwLgBAHhC8EAoCMAaCAiAhuglAKFEgE84IBiAOREzASnzwFsB7AEwFdQIAhdsMZgDtSAbzwQIAAQBO1AMZgAdHOaMADkJCCw4iIQiNMAaxCkEAPxXttALggBLbTjgA+CGIkT9Ye4xABnUn8Ad3swOQALCCttd10JAB8IJFcMITkQdHiIJIAmVPQwUIyszxyIYVg3bhBgJQBJbUUBAGUwaUcAcwRBZwBqPowIHz9-Us8AX2z9Rn9O0nQAYWB7OSMDU3QIAeHfALxsgB4AIz4BQTcRWc6AWhcAJXklf3auiYhDgHpT-iEXXSmUyAA

Can you explain what the issue is? Iā€™m not understanding from your question. What is the behaviour you are observing? What is the behaviour you were expecting?

1 Like

this works as expected. For poly variant, there is always an indirection since it is open data type

this is valid and it seems strange:

let x = (1, "a")
let y = #Neat(x)
let z = #Neat(1 ,"2")

let q = y == z