From 34a81fd60e0218ef93813ffce22fb6d0ed4955e2 Mon Sep 17 00:00:00 2001 From: chriseth Date: Wed, 16 Sep 2015 16:56:30 +0200 Subject: Refactoring: Check types outside of AST and recover from some errors. --- test/libsolidity/Assembly.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/libsolidity/Assembly.cpp') diff --git a/test/libsolidity/Assembly.cpp b/test/libsolidity/Assembly.cpp index 5bd6fed3..b4678611 100644 --- a/test/libsolidity/Assembly.cpp +++ b/test/libsolidity/Assembly.cpp @@ -31,6 +31,7 @@ #include #include #include +#include using namespace std; using namespace dev::eth; @@ -60,7 +61,8 @@ eth::AssemblyItems compileContract(const string& _sourceCode) for (ASTPointer const& node: sourceUnit->nodes()) if (ContractDefinition* contract = dynamic_cast(node.get())) { - BOOST_REQUIRE_NO_THROW(resolver.checkTypeRequirements(*contract)); + TypeChecker checker; + BOOST_REQUIRE_NO_THROW(checker.checkTypeRequirements(*contract)); } for (ASTPointer const& node: sourceUnit->nodes()) if (ContractDefinition* contract = dynamic_cast(node.get())) -- cgit