From a5d12b876180088904a026c472da23201a35d59c Mon Sep 17 00:00:00 2001 From: chriseth Date: Fri, 9 Oct 2015 19:35:41 +0200 Subject: Introduced tuple type and added multi variable declarations to type checker. --- test/libsolidity/SolidityParser.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test/libsolidity/SolidityParser.cpp') diff --git a/test/libsolidity/SolidityParser.cpp b/test/libsolidity/SolidityParser.cpp index 569530b9..0e69bfa8 100644 --- a/test/libsolidity/SolidityParser.cpp +++ b/test/libsolidity/SolidityParser.cpp @@ -952,6 +952,18 @@ BOOST_AUTO_TEST_CASE(multi_variable_declaration) BOOST_CHECK_NO_THROW(parseText(text)); } +BOOST_AUTO_TEST_CASE(multi_variable_declaration_invalid) +{ + char const* text = R"( + library Lib { + function f() { + var () = g(); + } + } + )"; + BOOST_CHECK_THROW(parseText(text), ParserError); +} + BOOST_AUTO_TEST_SUITE_END() } -- cgit