diff options
author | Liana Husikyan <liana@ethdev.com> | 2015-06-03 22:14:23 +0800 |
---|---|---|
committer | Liana Husikyan <liana@ethdev.com> | 2015-06-04 17:48:09 +0800 |
commit | 382ac85aa5e8bbcfa48e274d7aec0923b79666d4 (patch) | |
tree | 815b0deda5b36faa64784923e5cce59f60c1e04f /AST.cpp | |
parent | b7e5c1d9d20441a260699f6711af698b32700eb4 (diff) | |
download | dexon-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.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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() |