solidity/test/libsolidity/syntaxTests/inlineAssembly/circular_module_access_err.sol
2022-04-01 23:41:18 -05:00

15 lines
314 B
Solidity

==== Source: a ====
bytes32 constant x = x;
==== Source: b ====
import "a";
contract C {
function f() public pure returns (uint t) {
assembly {
// Reference to a circular member
t := x
}
}
}
// ----
// TypeError 3558: (b:155-156='x'): Constant variable is circular.