mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge at least one implemented function in a 2-way merge with an implementation (take 2)
This commit is contained in:
parent
b38ed7781d
commit
7ac8731f47
@ -980,9 +980,8 @@ void SolContract::merge()
|
||||
langutil::FuzzerError,
|
||||
"Sol proto fuzzer: n-way merge of non-virtual contract function is not possible"
|
||||
);
|
||||
// Assert contract functions are both implemented or unimplemented
|
||||
bool atleastOneImplements = (g->implemented() && !function->implemented()) ||
|
||||
(!g->implemented() && function->implemented());
|
||||
// Check if at least one base implements function
|
||||
bool atleastOneImplements = g->implemented() || function->implemented();
|
||||
function->merge(*g);
|
||||
// If abstract contract, we may implement
|
||||
bool implement = abstract() ? coinToss() : true;
|
||||
|
Loading…
Reference in New Issue
Block a user