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

12 lines
264 B
Solidity

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