mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #4163 from sifmelcara/fix-visibility-assert
Fix assert message about function visibility
This commit is contained in:
commit
e97f9b6ba8
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user