From 419a12db0301d132f99454197f93fd338e84b773 Mon Sep 17 00:00:00 2001 From: Mathias Baumann Date: Thu, 14 Feb 2019 13:41:33 +0100 Subject: [PATCH] TypeChecker: Add test to increase coverage --- .../syntaxTests/types/mapping/access_index_omitted.sol | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/libsolidity/syntaxTests/types/mapping/access_index_omitted.sol diff --git a/test/libsolidity/syntaxTests/types/mapping/access_index_omitted.sol b/test/libsolidity/syntaxTests/types/mapping/access_index_omitted.sol new file mode 100644 index 000000000..c08404cad --- /dev/null +++ b/test/libsolidity/syntaxTests/types/mapping/access_index_omitted.sol @@ -0,0 +1,8 @@ +contract C { + mapping(uint => uint) m; + function f() public { + m[] = 3; + } +} +// ---- +// TypeError: (76-79): Index expression cannot be omitted.