mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
7 lines
186 B
Solidity
7 lines
186 B
Solidity
|
library C {
|
||
|
receive() external payable {}
|
||
|
}
|
||
|
// ----
|
||
|
// TypeError: (16-45): Library functions cannot be payable.
|
||
|
// TypeError: (16-45): Libraries cannot have receive ether functions.
|