aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/parsing
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-06-21 05:51:19 +0800
committerGitHub <noreply@github.com>2018-06-21 05:51:19 +0800
commit7e4bd3e3468ec1d240068fde5b45f380cdef411c (patch)
tree9200ed8674e4d8b1f5eb9d942be4f1808492f02c /test/libsolidity/syntaxTests/parsing
parentedc0530452782ee82b35185579ce5fb7e4584a90 (diff)
parentdbfee87860187e3f3d5b6c06fffe0e601d01d7ea (diff)
downloaddexon-solidity-7e4bd3e3468ec1d240068fde5b45f380cdef411c.tar
dexon-solidity-7e4bd3e3468ec1d240068fde5b45f380cdef411c.tar.gz
dexon-solidity-7e4bd3e3468ec1d240068fde5b45f380cdef411c.tar.bz2
dexon-solidity-7e4bd3e3468ec1d240068fde5b45f380cdef411c.tar.lz
dexon-solidity-7e4bd3e3468ec1d240068fde5b45f380cdef411c.tar.xz
dexon-solidity-7e4bd3e3468ec1d240068fde5b45f380cdef411c.tar.zst
dexon-solidity-7e4bd3e3468ec1d240068fde5b45f380cdef411c.zip
Merge pull request #4219 from ethereum/functionTypeNamedArguments
Turn named return parameters in function types into an error.
Diffstat (limited to 'test/libsolidity/syntaxTests/parsing')
-rw-r--r--test/libsolidity/syntaxTests/parsing/function_type_in_struct.sol3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/libsolidity/syntaxTests/parsing/function_type_in_struct.sol b/test/libsolidity/syntaxTests/parsing/function_type_in_struct.sol
index d3c84678..c7703b47 100644
--- a/test/libsolidity/syntaxTests/parsing/function_type_in_struct.sol
+++ b/test/libsolidity/syntaxTests/parsing/function_type_in_struct.sol
@@ -1,6 +1,6 @@
contract test {
struct S {
- function (uint x, uint y) internal returns (uint a) f;
+ function (uint x, uint y) internal returns (uint) f;
function (uint, uint) external returns (uint) g;
uint d;
}
@@ -8,4 +8,3 @@ contract test {
// ----
// Warning: (49-55): Naming function type parameters is deprecated.
// Warning: (57-63): Naming function type parameters is deprecated.
-// Warning: (83-89): Naming function type return parameters is deprecated.