Merge pull request #10998 from ethereum/clean-up-function-external-type-tests

Minor cleanup in syntax tests for function types
This commit is contained in:
chriseth 2021-02-23 17:59:26 +01:00 committed by GitHub
commit 1220d8df7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 0 additions and 19 deletions

View File

@ -1,9 +0,0 @@
pragma abicoder v2;
contract C {
struct S { mapping(uint => uint) a; }
function f(S memory) public {}
}
// ----
// TypeError 4103: (105-113): Types containing (nested) mappings can only be parameters or return variables of internal or library functions.
// TypeError 4061: (105-113): Type struct C.S is only valid in storage because it contains a (nested) mapping.

View File

@ -1,10 +0,0 @@
pragma abicoder v2;
contract C {
struct T { mapping(uint => uint) a; }
struct S { T[][2] b; }
function f(S memory) public {}
}
// ----
// TypeError 4103: (132-140): Types containing (nested) mappings can only be parameters or return variables of internal or library functions.
// TypeError 4061: (132-140): Type struct C.S is only valid in storage because it contains a (nested) mapping.