From a7150f85a686bd2e96c01aa71f02fb0d762e0dd0 Mon Sep 17 00:00:00 2001 From: Christian Parpart Date: Thu, 12 Jul 2018 16:17:30 +0200 Subject: Ensures an empty use of var keyword is caught with the proper error message. --- test/libsolidity/syntaxTests/parsing/tuples_decl_without_rhs.sol | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/libsolidity/syntaxTests/parsing/tuples_decl_without_rhs.sol (limited to 'test/libsolidity/syntaxTests/parsing') diff --git a/test/libsolidity/syntaxTests/parsing/tuples_decl_without_rhs.sol b/test/libsolidity/syntaxTests/parsing/tuples_decl_without_rhs.sol new file mode 100644 index 00000000..dba3e7ac --- /dev/null +++ b/test/libsolidity/syntaxTests/parsing/tuples_decl_without_rhs.sol @@ -0,0 +1,7 @@ +contract C { + function f() public pure { + (uint a, uint b, uint c); + } +} +// ---- +// ParserError: (76-77): Expected '=' but got ';' -- cgit v1.2.3