Fix assert message about function visibility

This commit is contained in:
mingchuan 2018-05-20 22:29:11 +08:00
parent 5157c1058c
commit 3cd57866a9
No known key found for this signature in database
GPG Key ID: 607CD25FA2D03651

View File

@ -312,7 +312,7 @@ FunctionTypePointer FunctionDefinition::functionType(bool _internal) const
case Declaration::Visibility::External: case Declaration::Visibility::External:
return {}; return {};
default: default:
solAssert(false, "visibility() should not return a Visibility"); solAssert(false, "visibility() should return a Visibility");
} }
} }
else else
@ -328,7 +328,7 @@ FunctionTypePointer FunctionDefinition::functionType(bool _internal) const
case Declaration::Visibility::External: case Declaration::Visibility::External:
return make_shared<FunctionType>(*this, _internal); return make_shared<FunctionType>(*this, _internal);
default: default:
solAssert(false, "visibility() should not return a Visibility"); solAssert(false, "visibility() should return a Visibility");
} }
} }