aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/specialFunctions
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-08-16 05:30:09 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-09-04 19:31:10 +0800
commit82f512a7d40a3bd6a13dd799be66dd164fded077 (patch)
treefd9f01adf77c0abd676a13d1c2e1c60d8f20ce1a /test/libsolidity/syntaxTests/specialFunctions
parentf27d7edfd605ac04e04eafded93a9a4e81f20122 (diff)
downloaddexon-solidity-82f512a7d40a3bd6a13dd799be66dd164fded077.tar
dexon-solidity-82f512a7d40a3bd6a13dd799be66dd164fded077.tar.gz
dexon-solidity-82f512a7d40a3bd6a13dd799be66dd164fded077.tar.bz2
dexon-solidity-82f512a7d40a3bd6a13dd799be66dd164fded077.tar.lz
dexon-solidity-82f512a7d40a3bd6a13dd799be66dd164fded077.tar.xz
dexon-solidity-82f512a7d40a3bd6a13dd799be66dd164fded077.tar.zst
dexon-solidity-82f512a7d40a3bd6a13dd799be66dd164fded077.zip
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.