mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
8 lines
246 B
Solidity
8 lines
246 B
Solidity
// Tests that two private functions cannot be defined with the same name.
|
|
contract A {
|
|
function foo() private {}
|
|
function foo() private {}
|
|
}
|
|
// ----
|
|
// DeclarationError 1686: (88-113): Function with same name and parameter types defined twice.
|