Merge pull request #2464 from federicobond/deprecate-function-type-names

Warn deprecated usage of parameter names in function types
This commit is contained in:
chriseth
2017-06-27 16:32:48 +02:00
committed by GitHub
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++) {