You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When comparing two interfaces with underlying pointer types, they should only evaluate to true if both the types and the values are equal. In gno, the comparison seems not to consider the pointer type and evaluates to true as long as the "address" is the same.
fixes [this](#2624)
When comparing 2 upcasted pointers, if the types are not the same, they
are not equal.
---------
Co-authored-by: deelawn <dboltz03@gmail.com>
Incorrect pointer comparison
Description
When comparing two interfaces with underlying pointer types, they should only evaluate to true if both the types and the values are equal. In gno, the comparison seems not to consider the pointer type and evaluates to true as long as the "address" is the same.
In go: https://goplay.tools/snippet/zgyu54FGKk6
In gno: https://play.gno.land/p/QmBygigR1_h
The text was updated successfully, but these errors were encountered: