solidity/test/libsolidity/syntaxTests/inlineAssembly/constant_bytes_ref.sol

12 lines
317 B
Solidity
Raw Normal View History

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