solidity/test/libsolidity/syntaxTests/receiveEther/msg_data_in_receive.sol
2020-12-08 11:49:20 +01:00

6 lines
152 B
Solidity

contract C {
receive() external payable { msg.data; }
}
// ----
// TypeError 7139: (46-54): "msg.data" cannot be used inside of "receive" function.