aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-08-10 21:56:29 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-08-13 21:50:22 +0800
commita9f31da41146221c674356d5678030616110d471 (patch)
tree9027bbe7082cd658b5a0763e1b5ae4d99cca419d /test/libsolidity/syntaxTests
parent57ada1d69e311f847b4581a0e487aebd1b0e468f (diff)
downloaddexon-solidity-a9f31da41146221c674356d5678030616110d471.tar
dexon-solidity-a9f31da41146221c674356d5678030616110d471.tar.gz
dexon-solidity-a9f31da41146221c674356d5678030616110d471.tar.bz2
dexon-solidity-a9f31da41146221c674356d5678030616110d471.tar.lz
dexon-solidity-a9f31da41146221c674356d5678030616110d471.tar.xz
dexon-solidity-a9f31da41146221c674356d5678030616110d471.tar.zst
dexon-solidity-a9f31da41146221c674356d5678030616110d471.zip
Allow mapping arguments and return values in all internal functions.
Diffstat (limited to 'test/libsolidity/syntaxTests')
-rw-r--r--test/libsolidity/syntaxTests/types/mapping/argument_internal.sol2
-rw-r--r--test/libsolidity/syntaxTests/types/mapping/argument_private.sol2
-rw-r--r--test/libsolidity/syntaxTests/types/mapping/mapping_return_internal.sol5
3 files changed, 0 insertions, 9 deletions
diff --git a/test/libsolidity/syntaxTests/types/mapping/argument_internal.sol b/test/libsolidity/syntaxTests/types/mapping/argument_internal.sol
index 395f5808..3c021515 100644
--- a/test/libsolidity/syntaxTests/types/mapping/argument_internal.sol
+++ b/test/libsolidity/syntaxTests/types/mapping/argument_internal.sol
@@ -1,7 +1,5 @@
-// This is expected to fail now, but may work in the future.
contract C {
function f(mapping(uint => uint) storage) internal pure {
}
}
// ----
-// TypeError: (89-110): Type is required to live outside storage.
diff --git a/test/libsolidity/syntaxTests/types/mapping/argument_private.sol b/test/libsolidity/syntaxTests/types/mapping/argument_private.sol
index 0360514e..63733d71 100644
--- a/test/libsolidity/syntaxTests/types/mapping/argument_private.sol
+++ b/test/libsolidity/syntaxTests/types/mapping/argument_private.sol
@@ -1,7 +1,5 @@
-// This is expected to fail now, but may work in the future.
contract C {
function f(mapping(uint => uint) storage) private pure {
}
}
// ----
-// TypeError: (89-110): Type is required to live outside storage.
diff --git a/test/libsolidity/syntaxTests/types/mapping/mapping_return_internal.sol b/test/libsolidity/syntaxTests/types/mapping/mapping_return_internal.sol
index a46003f8..4912836e 100644
--- a/test/libsolidity/syntaxTests/types/mapping/mapping_return_internal.sol
+++ b/test/libsolidity/syntaxTests/types/mapping/mapping_return_internal.sol
@@ -1,4 +1,3 @@
-// This should be allowed in a future release.
contract C {
mapping(uint=>uint) m;
function f() internal view returns (mapping(uint=>uint) storage) {
@@ -15,7 +14,3 @@ contract C {
}
}
// ----
-// TypeError: (127-146): Type is required to live outside storage.
-// TypeError: (221-240): Type is required to live outside storage.
-// TypeError: (316-345): Type is required to live outside storage.
-// TypeError: (409-438): Type is required to live outside storage.