mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[TMP] Allow using 2-argument suffixes on integer literals
This commit is contained in:
parent
1cf0ab1b04
commit
9464a5f366
@ -3755,8 +3755,8 @@ void TypeChecker::endVisit(Literal const& _literal)
|
||||
parameterCountMessage = "Functions that take no arguments cannot be used as literal suffixes.";
|
||||
else if (functionType.parameterTypes().size() >= 3)
|
||||
parameterCountMessage = "Functions that take 3 or more arguments cannot be used as literal suffixes.";
|
||||
else if (functionType.parameterTypes().size() == 2 && !rationalType->isFractional())
|
||||
parameterCountMessage = "Functions that take 2 arguments can only be used as literal suffixes for fractional numbers.";
|
||||
else if (functionType.parameterTypes().size() == 2 && !rationalType)
|
||||
parameterCountMessage = "Functions that take 2 arguments can only be used as literal suffixes for rational numbers.";
|
||||
|
||||
optional<string> parameterTypeMessage;
|
||||
if (parameterCountMessage.has_value())
|
||||
|
Loading…
Reference in New Issue
Block a user