diff options
author | Liana Husikyan <liana@ethdev.com> | 2015-06-04 18:42:55 +0800 |
---|---|---|
committer | Liana Husikyan <liana@ethdev.com> | 2015-06-04 18:42:55 +0800 |
commit | 89aab7e234e3c96bbae2e4066cfa1249f5d1793e (patch) | |
tree | dbc713a4b503515c09fafd0231dca7c1eb7c4e0a /AST.cpp | |
parent | 382ac85aa5e8bbcfa48e274d7aec0923b79666d4 (diff) | |
download | dexon-solidity-89aab7e234e3c96bbae2e4066cfa1249f5d1793e.tar.gz dexon-solidity-89aab7e234e3c96bbae2e4066cfa1249f5d1793e.tar.zst dexon-solidity-89aab7e234e3c96bbae2e4066cfa1249f5d1793e.zip |
- style fixes
- added test for uint8 = -1 which doesn't fail; todo: fix that
Diffstat (limited to 'AST.cpp')
-rw-r--r-- | AST.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -686,14 +686,13 @@ void Expression::expectType(Type const& _expectedType) checkTypeRequirements(nullptr); Type const& type = *getType(); if (!type.isImplicitlyConvertibleTo(_expectedType)) - BOOST_THROW_EXCEPTION( - createTypeError( - "Type " + - type.toString() + - " is not implicitly convertible to expected type " + - _expectedType.toString() + - "." - ) + BOOST_THROW_EXCEPTION(createTypeError( + "Type " + + type.toString() + + " is not implicitly convertible to expected type " + + _expectedType.toString() + + "." + ) ); } |