From cf2847afc49853bcfee2aff7c01866b6b2e42c27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20=C5=9Aliwak?= Date: Tue, 23 Feb 2021 14:43:26 +0100 Subject: [PATCH] Remove duplicate syntax tests for functions taking internal struct types --- ...ith_stucts_of_non_external_types_in_interface_2.sol | 9 --------- ...tucts_of_non_external_types_in_interface_nested.sol | 10 ---------- 2 files changed, 19 deletions(-) delete mode 100644 test/libsolidity/syntaxTests/nameAndTypeResolution/042_functions_with_stucts_of_non_external_types_in_interface_2.sol delete mode 100644 test/libsolidity/syntaxTests/nameAndTypeResolution/043_functions_with_stucts_of_non_external_types_in_interface_nested.sol diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/042_functions_with_stucts_of_non_external_types_in_interface_2.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/042_functions_with_stucts_of_non_external_types_in_interface_2.sol deleted file mode 100644 index 297f809fd..000000000 --- a/test/libsolidity/syntaxTests/nameAndTypeResolution/042_functions_with_stucts_of_non_external_types_in_interface_2.sol +++ /dev/null @@ -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. diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/043_functions_with_stucts_of_non_external_types_in_interface_nested.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/043_functions_with_stucts_of_non_external_types_in_interface_nested.sol deleted file mode 100644 index 78660bdae..000000000 --- a/test/libsolidity/syntaxTests/nameAndTypeResolution/043_functions_with_stucts_of_non_external_types_in_interface_nested.sol +++ /dev/null @@ -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.