We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41c9256 commit 830a029Copy full SHA for 830a029
libsolidity/analysis/TypeChecker.cpp
@@ -1829,6 +1829,16 @@ void TypeChecker::endVisit(BinaryOperation const& _operation)
1829
)
1830
);
1831
}
1832
+ if (
1833
+ TokenTraits::isCompareOp(_operation.getOperator()) &&
1834
+ commonType->category() == Type::Category::Contract
1835
+ )
1836
+ m_errorReporter.warning(
1837
+ 9170_error,
1838
+ _operation.location(),
1839
+ "Comparison of variables of contract type is deprecated and scheduled for removal "
1840
+ "in the next breaking version (0.9). Instead, use an explicit cast to address type."
1841
+ );
1842
1843
1844
Type const* TypeChecker::typeCheckTypeConversionAndRetrieveReturnType(
0 commit comments