diff options
author | chriseth <chris@ethereum.org> | 2018-03-16 02:54:05 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-04-03 22:29:18 +0800 |
commit | 8fdbd19a05c976908172d0f776a0f96837449683 (patch) | |
tree | ff032c40cc3853ea29c37adbd61dc21892116edb /test/libsolidity/syntaxTests/constants/cyclic_dependency_3.sol | |
parent | eb5b18e8145d7d3971c450ba220f322e5f66d45c (diff) | |
download | dexon-solidity-8fdbd19a05c976908172d0f776a0f96837449683.tar dexon-solidity-8fdbd19a05c976908172d0f776a0f96837449683.tar.gz dexon-solidity-8fdbd19a05c976908172d0f776a0f96837449683.tar.bz2 dexon-solidity-8fdbd19a05c976908172d0f776a0f96837449683.tar.lz dexon-solidity-8fdbd19a05c976908172d0f776a0f96837449683.tar.xz dexon-solidity-8fdbd19a05c976908172d0f776a0f96837449683.tar.zst dexon-solidity-8fdbd19a05c976908172d0f776a0f96837449683.zip |
Extract constant cycle tests.
Diffstat (limited to 'test/libsolidity/syntaxTests/constants/cyclic_dependency_3.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/constants/cyclic_dependency_3.sol | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/constants/cyclic_dependency_3.sol b/test/libsolidity/syntaxTests/constants/cyclic_dependency_3.sol new file mode 100644 index 00000000..f63be05e --- /dev/null +++ b/test/libsolidity/syntaxTests/constants/cyclic_dependency_3.sol @@ -0,0 +1,11 @@ +contract C { + uint constant x = a; + uint constant a = b * c; + uint constant b = c; + uint constant c = b; +} +// ---- +// TypeError: The value of the constant x has a cyclic dependency via a. +// TypeError: The value of the constant a has a cyclic dependency via b. +// TypeError: The value of the constant b has a cyclic dependency via c. +// TypeError: The value of the constant c has a cyclic dependency via b. |