Make non-payable default for conversion to address.

This commit is contained in:
chriseth
2018-09-20 14:31:04 +02:00
parent 2150aea344
commit d0461c49fe
8 changed files with 43 additions and 5 deletions
+2 -2
View File
@@ -2641,8 +2641,8 @@ bool FunctionType::operator==(Type const& _other) const
bool FunctionType::isExplicitlyConvertibleTo(Type const& _convertTo) const
{
if (m_kind == Kind::External && _convertTo.category() == Category::Address)
return true;
if (m_kind == Kind::External && _convertTo == AddressType::address())
return true;
return _convertTo.category() == category();
}