aboutsummaryrefslogtreecommitdiffstats
path: root/AST.cpp
diff options
context:
space:
mode:
authorLiana Husikyan <liana@ethdev.com>2015-06-03 22:14:23 +0800
committerLiana Husikyan <liana@ethdev.com>2015-06-04 17:48:09 +0800
commit382ac85aa5e8bbcfa48e274d7aec0923b79666d4 (patch)
tree815b0deda5b36faa64784923e5cce59f60c1e04f /AST.cpp
parentb7e5c1d9d20441a260699f6711af698b32700eb4 (diff)
downloaddexon-solidity-382ac85aa5e8bbcfa48e274d7aec0923b79666d4.tar
dexon-solidity-382ac85aa5e8bbcfa48e274d7aec0923b79666d4.tar.gz
dexon-solidity-382ac85aa5e8bbcfa48e274d7aec0923b79666d4.tar.bz2
dexon-solidity-382ac85aa5e8bbcfa48e274d7aec0923b79666d4.tar.lz
dexon-solidity-382ac85aa5e8bbcfa48e274d7aec0923b79666d4.tar.xz
dexon-solidity-382ac85aa5e8bbcfa48e274d7aec0923b79666d4.tar.zst
dexon-solidity-382ac85aa5e8bbcfa48e274d7aec0923b79666d4.zip
- conversion of positive literals to signed int
- tests
Diffstat (limited to 'AST.cpp')
-rw-r--r--AST.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/AST.cpp b/AST.cpp
index 248abfdb..a209235d 100644
--- a/AST.cpp
+++ b/AST.cpp
@@ -686,9 +686,15 @@ void Expression::expectType(Type const& _expectedType)
checkTypeRequirements(nullptr);
Type const& type = *getType();
if (!type.isImplicitlyConvertibleTo(_expectedType))
- BOOST_THROW_EXCEPTION(createTypeError("Type " + type.toString() +
- " not implicitly convertible to expected type "
- + _expectedType.toString() + "."));
+ BOOST_THROW_EXCEPTION(
+ createTypeError(
+ "Type " +
+ type.toString() +
+ " is not implicitly convertible to expected type " +
+ _expectedType.toString() +
+ "."
+ )
+ );
}
void Expression::requireLValue()