mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Explicitly set coder to v1 for syntax tests.
This commit is contained in:
+2
-1
@@ -1,7 +1,8 @@
|
||||
pragma abicoder v1;
|
||||
contract C {
|
||||
function f() public pure {
|
||||
abi.decode("1234", (uint[][3]));
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError 9611: (72-81): Decoding type uint256[] memory[3] memory not supported.
|
||||
// TypeError 9611: (92-101): Decoding type uint256[] memory[3] memory not supported.
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
pragma abicoder v1;
|
||||
struct S {
|
||||
uint x;
|
||||
}
|
||||
@@ -8,4 +9,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError 9611: (98-99): Decoding type struct S memory not supported.
|
||||
// TypeError 9611: (118-119): Decoding type struct S memory not supported.
|
||||
|
||||
Reference in New Issue
Block a user