mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
16 lines
538 B
Solidity
16 lines
538 B
Solidity
==== Source: a ====
|
|
import "b";
|
|
uint constant c = d;
|
|
==== Source: b ====
|
|
import "a" as M;
|
|
uint constant b = M.c;
|
|
uint constant d = b;
|
|
contract C {
|
|
uint constant a = b;
|
|
}
|
|
// ----
|
|
// TypeError 6161: (b:17-38): The value of the constant b has a cyclic dependency via c.
|
|
// TypeError 6161: (b:40-59): The value of the constant d has a cyclic dependency via b.
|
|
// TypeError 6161: (b:78-97): The value of the constant a has a cyclic dependency via b.
|
|
// TypeError 6161: (a:12-31): The value of the constant c has a cyclic dependency via d.
|