mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Allow `memory` suffix for internal elementary type parsing.
This commit is contained in:
committed by
Alex Beregszaszi
parent
95b0589f77
commit
5b1c0506fa
@@ -53,7 +53,7 @@ namespace solidity
|
||||
|
||||
void ElementaryTypeNameToken::assertDetails(Token::Value _baseType, unsigned const& _first, unsigned const& _second)
|
||||
{
|
||||
solAssert(Token::isElementaryTypeName(_baseType), "");
|
||||
solAssert(Token::isElementaryTypeName(_baseType), "Expected elementary type name: " + string(Token::toString(_baseType)));
|
||||
if (_baseType == Token::BytesM)
|
||||
{
|
||||
solAssert(_second == 0, "There should not be a second size argument to type bytesM.");
|
||||
|
||||
Reference in New Issue
Block a user