From fdcbf1337a018087fe82a2fbef938d0acd6769f9 Mon Sep 17 00:00:00 2001 From: Daniel Kirchner Date: Wed, 11 Apr 2018 18:01:01 +0200 Subject: Syntax Tests: extract array_length_* tests. --- test/libsolidity/syntaxTests/arrayLength/invalid_expression_5.sol | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 test/libsolidity/syntaxTests/arrayLength/invalid_expression_5.sol (limited to 'test/libsolidity/syntaxTests/arrayLength/invalid_expression_5.sol') diff --git a/test/libsolidity/syntaxTests/arrayLength/invalid_expression_5.sol b/test/libsolidity/syntaxTests/arrayLength/invalid_expression_5.sol new file mode 100644 index 00000000..38a80867 --- /dev/null +++ b/test/libsolidity/syntaxTests/arrayLength/invalid_expression_5.sol @@ -0,0 +1,5 @@ +contract C { + uint[3/0] ids; +} +// ---- +// TypeError: (22-25): Operator / not compatible with types int_const 3 and int_const 0 -- cgit v1.2.3