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

12 lines
326 B
Solidity

contract C {
bytes32 constant x = keccak256("abc");
bytes32 constant y = x;
function f() public pure returns (uint t) {
assembly {
t := y
}
}
}
// ----
// TypeError 7615: (168-169='y'): Only direct number constants and references to such constants are supported by inline assembly.