diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-07-28 03:56:29 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-07-28 04:52:58 +0800 |
commit | d4e44ecb46df58ff21690c28098d20e3c5dfe307 (patch) | |
tree | 96495e8fff67aa7d3059f9f1876921bd87c6a801 /libsolidity | |
parent | 9fc6eccc26eea6f5a70f2960df9d53d49392151e (diff) | |
download | dexon-solidity-d4e44ecb46df58ff21690c28098d20e3c5dfe307.tar.gz dexon-solidity-d4e44ecb46df58ff21690c28098d20e3c5dfe307.tar.zst dexon-solidity-d4e44ecb46df58ff21690c28098d20e3c5dfe307.zip |
Disallow externalSignature for fallback functions
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/ast/Types.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp index 84e4a077..3f8da501 100644 --- a/libsolidity/ast/Types.cpp +++ b/libsolidity/ast/Types.cpp @@ -2524,6 +2524,7 @@ bool FunctionType::isBareCall() const string FunctionType::externalSignature() const { solAssert(m_declaration != nullptr, "External signature of function needs declaration"); + solAssert(!m_declaration->name().empty(), "Fallback function has no signature."); bool _inLibrary = dynamic_cast<ContractDefinition const&>(*m_declaration->scope()).isLibrary(); |