Remove duplicate syntax tests for functions taking internal struct types

This commit is contained in:
Kamil Śliwak 2021-02-23 14:43:26 +01:00
parent fc7a091bfb
commit cf2847afc4
2 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.