diff options
author | Erik Kundt <bitshift@posteo.org> | 2018-07-02 23:47:48 +0800 |
---|---|---|
committer | Erik Kundt <bitshift@posteo.org> | 2018-07-04 16:45:59 +0800 |
commit | 2e0d019ef09ac4f168a4e528f8b4a051a942a479 (patch) | |
tree | eff18ba14670133da9c777fb446bc94e2ea0a2cb /test/libsolidity/syntaxTests/array/length/cannot_be_function_call.sol | |
parent | 533d5d4b1cc4374decc704de8c86ad4cef6214fc (diff) | |
download | dexon-solidity-2e0d019ef09ac4f168a4e528f8b4a051a942a479.tar dexon-solidity-2e0d019ef09ac4f168a4e528f8b4a051a942a479.tar.gz dexon-solidity-2e0d019ef09ac4f168a4e528f8b4a051a942a479.tar.bz2 dexon-solidity-2e0d019ef09ac4f168a4e528f8b4a051a942a479.tar.lz dexon-solidity-2e0d019ef09ac4f168a4e528f8b4a051a942a479.tar.xz dexon-solidity-2e0d019ef09ac4f168a4e528f8b4a051a942a479.tar.zst dexon-solidity-2e0d019ef09ac4f168a4e528f8b4a051a942a479.zip |
Adds default visibility specifier to syntax tests.
Diffstat (limited to 'test/libsolidity/syntaxTests/array/length/cannot_be_function_call.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/array/length/cannot_be_function_call.sol | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/libsolidity/syntaxTests/array/length/cannot_be_function_call.sol b/test/libsolidity/syntaxTests/array/length/cannot_be_function_call.sol index a6863955..bb8cc599 100644 --- a/test/libsolidity/syntaxTests/array/length/cannot_be_function_call.sol +++ b/test/libsolidity/syntaxTests/array/length/cannot_be_function_call.sol @@ -1,7 +1,7 @@ contract C { - function f(uint x) {} + function f(uint x) public {} uint constant LEN = f(); uint[LEN] ids; } // ---- -// TypeError: (77-80): Invalid array length, expected integer literal or constant expression. +// TypeError: (84-87): Invalid array length, expected integer literal or constant expression. |