aboutsummaryrefslogtreecommitdiffstats
path: root/AST.cpp
diff options
context:
space:
mode:
authorLiana Husikyan <liana@ethdev.com>2015-06-04 18:42:55 +0800
committerLiana Husikyan <liana@ethdev.com>2015-06-04 18:42:55 +0800
commit89aab7e234e3c96bbae2e4066cfa1249f5d1793e (patch)
treedbc713a4b503515c09fafd0231dca7c1eb7c4e0a /AST.cpp
parent382ac85aa5e8bbcfa48e274d7aec0923b79666d4 (diff)
downloaddexon-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.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/AST.cpp b/AST.cpp
index a209235d..c6aebd4f 100644
--- a/AST.cpp
+++ b/AST.cpp
@@ -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() +
+ "."
+ )
);
}