mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Tests, Docs and Changelog
This commit is contained in:
+3
-1
@@ -1,3 +1,5 @@
|
||||
pragma experimental ABIEncoderV2;
|
||||
|
||||
contract Test {
|
||||
struct MyStructName {
|
||||
address addr;
|
||||
@@ -7,4 +9,4 @@ contract Test {
|
||||
function f(MyStructName memory s) public {}
|
||||
}
|
||||
// ----
|
||||
// TypeError 4103: (112-133): Recursive type not allowed for public or external contract functions.
|
||||
// TypeError 4103: (147-168): Recursive type not allowed for public or external contract functions.
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
pragma experimental ABIEncoderV2;
|
||||
|
||||
contract C {
|
||||
struct S { uint a; S[] sub; }
|
||||
function f() public pure returns (uint, S memory) {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError 4103: (91-99): Recursive type not allowed for public or external contract functions.
|
||||
// TypeError 4103: (126-134): Recursive type not allowed for public or external contract functions.
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
pragma experimental ABIEncoderV2;
|
||||
|
||||
contract C {
|
||||
struct S { uint a; S[2][] sub; }
|
||||
function f() public pure returns (uint, S memory) {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError 4103: (94-102): Recursive type not allowed for public or external contract functions.
|
||||
// TypeError 4103: (129-137): Recursive type not allowed for public or external contract functions.
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
pragma experimental ABIEncoderV2;
|
||||
|
||||
contract C {
|
||||
struct S { uint a; S[][][] sub; }
|
||||
struct T { S s; }
|
||||
@@ -5,4 +7,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError 4103: (119-129): Recursive type not allowed for public or external contract functions.
|
||||
// TypeError 4103: (154-164): Recursive type not allowed for public or external contract functions.
|
||||
|
||||
Reference in New Issue
Block a user