From 1dbf2d19238068c19ef369e6fa2fb1b2f8ab1d13 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Tue, 24 Jul 2018 00:19:12 +0100 Subject: Add comprehensive syntax tests for indexed access --- test/libsolidity/syntaxTests/indexing/array_without_index.sol | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/libsolidity/syntaxTests/indexing/array_without_index.sol (limited to 'test/libsolidity/syntaxTests/indexing/array_without_index.sol') diff --git a/test/libsolidity/syntaxTests/indexing/array_without_index.sol b/test/libsolidity/syntaxTests/indexing/array_without_index.sol new file mode 100644 index 00000000..6b1c2778 --- /dev/null +++ b/test/libsolidity/syntaxTests/indexing/array_without_index.sol @@ -0,0 +1,8 @@ +contract C { + function f() public { + bytes memory a; + a[]; + } +} +// ---- +// TypeError: (61-64): Index expression cannot be omitted. -- cgit v1.2.3