Explicitly set coder to v1 for syntax tests.

This commit is contained in:
chriseth
2020-12-09 15:25:15 +01:00
parent a5bd22795e
commit 72f1e4ea0b
45 changed files with 88 additions and 38 deletions
@@ -1,7 +1,8 @@
pragma abicoder v1;
contract Test {
function f(uint[][] calldata) external { }
function g(uint[][1] calldata) external { }
}
// ----
// TypeError 4957: (31-48): This type is only supported in ABI coder v2. Use "pragma abicoder v2;" to enable the feature.
// TypeError 4957: (78-96): This type is only supported in ABI coder v2. Use "pragma abicoder v2;" to enable the feature.
// TypeError 4957: (51-68): This type is only supported in ABI coder v2. Use "pragma abicoder v2;" to enable the feature.
// TypeError 4957: (98-116): This type is only supported in ABI coder v2. Use "pragma abicoder v2;" to enable the feature.