Merge pull request #4163 from sifmelcara/fix-visibility-assert

Fix assert message about function visibility
This commit is contained in:
chriseth 2018-05-21 10:12:50 +02:00 committed by GitHub
commit e97f9b6ba8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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");
}
}