Allow `memory` suffix for internal elementary type parsing.

This commit is contained in:
chriseth
2018-04-05 16:06:04 +02:00
committed by Alex Beregszaszi
parent 95b0589f77
commit 5b1c0506fa
4 changed files with 16 additions and 3 deletions
+1 -1
View File
@@ -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.");