diff options
author | mingchuan <mingc@skymizer.com> | 2018-05-20 22:29:11 +0800 |
---|---|---|
committer | mingchuan <mingc@skymizer.com> | 2018-05-20 22:29:11 +0800 |
commit | 3cd57866a98e1d26d7c44ead492e0dc2ea4d73ab (patch) | |
tree | 6c21c75e1ba8a92d4f6501753f3d3abf8f87bbff | |
parent | 5157c1058c34aee64a0dbbf33c7b63c84240a3a5 (diff) | |
download | dexon-solidity-3cd57866a98e1d26d7c44ead492e0dc2ea4d73ab.tar.gz dexon-solidity-3cd57866a98e1d26d7c44ead492e0dc2ea4d73ab.tar.zst dexon-solidity-3cd57866a98e1d26d7c44ead492e0dc2ea4d73ab.zip |
Fix assert message about function visibility
-rw-r--r-- | libsolidity/ast/AST.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/ast/AST.cpp b/libsolidity/ast/AST.cpp index 80f5d642..16c9b2d2 100644 --- a/libsolidity/ast/AST.cpp +++ b/libsolidity/ast/AST.cpp @@ -312,7 +312,7 @@ FunctionTypePointer FunctionDefinition::functionType(bool _internal) const case Declaration::Visibility::External: return {}; default: - solAssert(false, "visibility() should not return a Visibility"); + solAssert(false, "visibility() should return a Visibility"); } } else @@ -328,7 +328,7 @@ FunctionTypePointer FunctionDefinition::functionType(bool _internal) const case Declaration::Visibility::External: return make_shared<FunctionType>(*this, _internal); default: - solAssert(false, "visibility() should not return a Visibility"); + solAssert(false, "visibility() should return a Visibility"); } } |