mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
12 lines
317 B
Solidity
12 lines
317 B
Solidity
|
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.
|