Warn deprecated usage of parameter names in function types

This commit is contained in:
Federico Bond
2017-06-26 15:39:01 -03:00
parent bffb8c404f
commit 70fd5c1770
4 changed files with 36 additions and 2 deletions
+2 -2
View File
@@ -387,10 +387,10 @@ Example that shows how to use internal function types::
}
function reduce(
uint[] memory self,
function (uint x, uint y) returns (uint) f
function (uint, uint) returns (uint) f
)
internal
returns (uint r)
returns (uint)
{
r = self[0];
for (uint i = 1; i < self.length; i++) {