diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-11-22 09:05:26 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-11-22 10:11:22 +0800 |
commit | 455e51a608910d60348adb4b464590d976ce7fd7 (patch) | |
tree | 9037a4aea595c2da22d9422feceba7de72788e76 /test | |
parent | d102deaec90f6f5bfe38140b459a05215d3254f9 (diff) | |
download | dexon-solidity-455e51a608910d60348adb4b464590d976ce7fd7.tar.gz dexon-solidity-455e51a608910d60348adb4b464590d976ce7fd7.tar.zst dexon-solidity-455e51a608910d60348adb4b464590d976ce7fd7.zip |
Improve cyclic constant error message
Diffstat (limited to 'test')
-rw-r--r-- | test/libsolidity/SolidityNameAndTypeResolution.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp index 0d02ac34..73c1660e 100644 --- a/test/libsolidity/SolidityNameAndTypeResolution.cpp +++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp @@ -7379,7 +7379,7 @@ BOOST_AUTO_TEST_CASE(array_length_with_cyclic_constant) } } )"; - CHECK_ERROR(text, TypeError, "Cyclic constant definition."); + CHECK_ERROR(text, TypeError, "Cyclic constant definition (or maximum recursion depth exhausted)."); } BOOST_AUTO_TEST_CASE(array_length_with_complex_cyclic_constant) @@ -7394,7 +7394,7 @@ BOOST_AUTO_TEST_CASE(array_length_with_complex_cyclic_constant) } } )"; - CHECK_ERROR(text, TypeError, "Cyclic constant definition."); + CHECK_ERROR(text, TypeError, "Cyclic constant definition (or maximum recursion depth exhausted)."); } BOOST_AUTO_TEST_CASE(array_length_with_pure_functions) |