From 8ed3da1d5f744337ba96916d9648a6884a25a3e7 Mon Sep 17 00:00:00 2001 From: chriseth Date: Tue, 3 Jul 2018 23:03:26 +0200 Subject: Only allow compile-time constants for constant state variables. --- .../syntaxTests/constants/assign_constant_function_value.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/libsolidity/syntaxTests/constants') 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. -- cgit v1.2.3