solidity/test/libsolidity/syntaxTests/viewPureChecker/callvalue_payable_assembly_fallback.sol

12 lines
170 B
Solidity

contract C
{
receive () external payable {
}
fallback () external payable {
uint x;
assembly {
x := callvalue()
}
}
}