Style and some assertion messages.

This commit is contained in:
chriseth
2015-07-03 18:15:05 +02:00
parent e2d6e34f9c
commit aa6182ab87
4 changed files with 5 additions and 8 deletions
+1 -1
View File
@@ -324,7 +324,7 @@ bool ExpressionCompiler::visit(FunctionCall const& _functionCall)
FunctionTypePointer functionType;
if (_functionCall.isStructConstructorCall())
{
TypeType const& type = dynamic_cast<TypeType const&>(*_functionCall.getExpression().getType());
auto const& type = dynamic_cast<TypeType const&>(*_functionCall.getExpression().getType());
auto const& structType = dynamic_cast<StructType const&>(*type.getActualType());
functionType = structType.constructorType();
}