aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/specialFunctions
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-09-04 22:31:25 +0800
committerGitHub <noreply@github.com>2018-09-04 22:31:25 +0800
commitcc7daf7b476f498c4dcde7bdb342974097ffe9bf (patch)
tree707656e46a626f93bb24d45710ebda7ab31a013f /test/libsolidity/syntaxTests/specialFunctions
parentd88e5039ccc768f810f7882aa1f9ae338bc27dd3 (diff)
parente3097b30dace9bbd88a5a74e6507baad0bc12cc4 (diff)
downloaddexon-solidity-cc7daf7b476f498c4dcde7bdb342974097ffe9bf.tar
dexon-solidity-cc7daf7b476f498c4dcde7bdb342974097ffe9bf.tar.gz
dexon-solidity-cc7daf7b476f498c4dcde7bdb342974097ffe9bf.tar.bz2
dexon-solidity-cc7daf7b476f498c4dcde7bdb342974097ffe9bf.tar.lz
dexon-solidity-cc7daf7b476f498c4dcde7bdb342974097ffe9bf.tar.xz
dexon-solidity-cc7daf7b476f498c4dcde7bdb342974097ffe9bf.tar.zst
dexon-solidity-cc7daf7b476f498c4dcde7bdb342974097ffe9bf.zip
Merge pull request #4829 from ethereum/callBytesReturn
Add return data to bare calls.
Diffstat (limited to 'test/libsolidity/syntaxTests/specialFunctions')
-rw-r--r--test/libsolidity/syntaxTests/specialFunctions/types_with_unspecified_encoding_special_types.sol16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/libsolidity/syntaxTests/specialFunctions/types_with_unspecified_encoding_special_types.sol b/test/libsolidity/syntaxTests/specialFunctions/types_with_unspecified_encoding_special_types.sol
index c97f588e..6e0b6db4 100644
--- a/test/libsolidity/syntaxTests/specialFunctions/types_with_unspecified_encoding_special_types.sol
+++ b/test/libsolidity/syntaxTests/specialFunctions/types_with_unspecified_encoding_special_types.sol
@@ -1,13 +1,13 @@
contract C {
function f() public pure {
- bool a = address(this).call(abi.encode(address(this).delegatecall, super));
- bool b = address(this).delegatecall(abi.encode(log0, tx, mulmod));
- a; b;
+ (bool a,) = address(this).call(abi.encode(address(this).delegatecall, super));
+ (a,) = address(this).delegatecall(abi.encode(log0, tx, mulmod));
+ a;
}
}
// ----
-// TypeError: (91-117): This type cannot be encoded.
-// TypeError: (119-124): This type cannot be encoded.
-// TypeError: (183-187): This type cannot be encoded.
-// TypeError: (189-191): This type cannot be encoded.
-// TypeError: (193-199): This type cannot be encoded.
+// TypeError: (94-120): This type cannot be encoded.
+// TypeError: (122-127): This type cannot be encoded.
+// TypeError: (184-188): This type cannot be encoded.
+// TypeError: (190-192): This type cannot be encoded.
+// TypeError: (194-200): This type cannot be encoded.