mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Nicer error message for private payable functions
This commit is contained in:
@@ -2,4 +2,4 @@ contract test {
|
||||
function f() payable internal {}
|
||||
}
|
||||
// ----
|
||||
// TypeError 5587: (20-52): Internal functions cannot be payable.
|
||||
// TypeError 5587: (20-52): "internal" and "private" functions cannot be payable.
|
||||
|
||||
@@ -2,4 +2,4 @@ contract test {
|
||||
function f() payable private {}
|
||||
}
|
||||
// ----
|
||||
// TypeError 5587: (20-51): Internal functions cannot be payable.
|
||||
// TypeError 5587: (20-51): "internal" and "private" functions cannot be payable.
|
||||
|
||||
Reference in New Issue
Block a user