Natspec: Don't copy from base function if return parameters differ

This commit is contained in:
Mathias Baumann
2021-04-19 15:20:30 +02:00
parent 14d2170b46
commit 1737bd7ded
6 changed files with 109 additions and 9 deletions
@@ -0,0 +1,14 @@
interface IThing {
/// @return x a number
/// @return y another number
function value() external view returns (uint128 x, uint128 y);
}
contract Thing is IThing {
struct Value {
uint128 x;
uint128 y;
}
Value public override value;
}
@@ -0,0 +1,15 @@
interface IThing {
/// @param v value to search for
/// @return x a number
/// @return y another number
function value(uint256 v) external view returns (uint128 x, uint128 y);
}
contract Thing is IThing {
struct Value {
uint128 x;
uint128 y;
}
mapping(uint256=>Value) public override value;
}