diff options
author | chriseth <chris@ethereum.org> | 2018-07-05 23:07:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-05 23:07:32 +0800 |
commit | f3e0bf1dd85fef29bf80f2235b5c0c19a6d30f31 (patch) | |
tree | 212f8cd521bf92aceb23cae7ab2fa69a63bab3a6 /test/libsolidity/syntaxTests/constants | |
parent | 2987e33e23bf8eb7283b9fd6f24eaa03c4771d7b (diff) | |
parent | 8ed3da1d5f744337ba96916d9648a6884a25a3e7 (diff) | |
download | dexon-solidity-f3e0bf1dd85fef29bf80f2235b5c0c19a6d30f31.tar dexon-solidity-f3e0bf1dd85fef29bf80f2235b5c0c19a6d30f31.tar.gz dexon-solidity-f3e0bf1dd85fef29bf80f2235b5c0c19a6d30f31.tar.bz2 dexon-solidity-f3e0bf1dd85fef29bf80f2235b5c0c19a6d30f31.tar.lz dexon-solidity-f3e0bf1dd85fef29bf80f2235b5c0c19a6d30f31.tar.xz dexon-solidity-f3e0bf1dd85fef29bf80f2235b5c0c19a6d30f31.tar.zst dexon-solidity-f3e0bf1dd85fef29bf80f2235b5c0c19a6d30f31.zip |
Merge pull request #4418 from ethereum/initialConstants
Only allow compile-time constants for constant state variables.
Diffstat (limited to 'test/libsolidity/syntaxTests/constants')
-rw-r--r-- | test/libsolidity/syntaxTests/constants/assign_constant_function_value.sol | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/libsolidity/syntaxTests/constants/assign_constant_function_value.sol b/test/libsolidity/syntaxTests/constants/assign_constant_function_value.sol index 88e94e29..0e242b30 100644 --- a/test/libsolidity/syntaxTests/constants/assign_constant_function_value.sol +++ b/test/libsolidity/syntaxTests/constants/assign_constant_function_value.sol @@ -3,4 +3,4 @@ contract C { uint constant y = x(); } // ---- -// Warning: (74-77): Initial value for constant variable has to be compile-time constant. This will fail to compile with the next breaking version change. +// TypeError: (74-77): Initial value for constant variable has to be compile-time constant. |