mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Disallowing usage of msg.data in receive() function.
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
contract C {
|
||||
receive() external payable { msg.data; }
|
||||
}
|
||||
// ----
|
||||
// TypeError 7139: (46-54): "msg.data" cannot be used inside of "receive" function.
|
||||
Reference in New Issue
Block a user