`ReferenceType::equals(ReferenceType const& _other)` name is misleading.
Author: rodiazetCreated Sep 25, 2026Updated Sep 27, 2026
Labelsbug :bug:low effortlow impactmust have
Description
In this fragment of the code someone probably tried to compare types ignoring location and isPointer, but looking at the equals function implementation it does not compare full type, but only location and isPointer. So this assert is useless.
It was changed by this commit. Previously it equals was == operator and it did the same.
This function usage should be verified and the name should be changed. It’s used in a couple of places in YulUtilFunctions.cpp.
Source: argotorg/solidity