mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
15 lines
251 B
Solidity
15 lines
251 B
Solidity
contract C
|
|
{
|
|
modifier m {
|
|
uint x;
|
|
assembly {
|
|
x := callvalue()
|
|
}
|
|
_;
|
|
}
|
|
function f() m public {
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError: (99-100): This modifier uses "msg.value" or "callvalue()" and thus the function has to be payable or internal.
|