aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-05-21 16:12:50 +0800
committerGitHub <noreply@github.com>2018-05-21 16:12:50 +0800
commite97f9b6ba85b5cf5d347f1771524d0b0973e00bb (patch)
tree6c21c75e1ba8a92d4f6501753f3d3abf8f87bbff
parent5157c1058c34aee64a0dbbf33c7b63c84240a3a5 (diff)
parent3cd57866a98e1d26d7c44ead492e0dc2ea4d73ab (diff)
downloaddexon-solidity-e97f9b6ba85b5cf5d347f1771524d0b0973e00bb.tar
dexon-solidity-e97f9b6ba85b5cf5d347f1771524d0b0973e00bb.tar.gz
dexon-solidity-e97f9b6ba85b5cf5d347f1771524d0b0973e00bb.tar.bz2
dexon-solidity-e97f9b6ba85b5cf5d347f1771524d0b0973e00bb.tar.lz
dexon-solidity-e97f9b6ba85b5cf5d347f1771524d0b0973e00bb.tar.xz
dexon-solidity-e97f9b6ba85b5cf5d347f1771524d0b0973e00bb.tar.zst
dexon-solidity-e97f9b6ba85b5cf5d347f1771524d0b0973e00bb.zip
Merge pull request #4163 from sifmelcara/fix-visibility-assert
Fix assert message about function visibility
-rw-r--r--libsolidity/ast/AST.cpp4
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");
}
}