mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[test] Update tests to include location string.
This commit is contained in:
+1
-1
@@ -9,4 +9,4 @@ contract Test {
|
||||
function f(MyStructName memory s) public {}
|
||||
}
|
||||
// ----
|
||||
// TypeError 4103: (147-168): Recursive type not allowed for public or external contract functions.
|
||||
// TypeError 4103: (147-168='MyStructName memory s'): Recursive type not allowed for public or external contract functions.
|
||||
|
||||
+1
-1
@@ -10,4 +10,4 @@ library Test {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError 4103: (146-168): Recursive structs can only be passed as storage pointers to libraries, not as memory objects to contract functions.
|
||||
// TypeError 4103: (146-168='MyStructName memory _x'): Recursive structs can only be passed as storage pointers to libraries, not as memory objects to contract functions.
|
||||
|
||||
+1
-1
@@ -7,4 +7,4 @@ contract Data {
|
||||
struct S { S[] x; }
|
||||
}
|
||||
// ----
|
||||
// TypeError 4103: (63-78): Recursive type not allowed for public or external contract functions.
|
||||
// TypeError 4103: (63-78='Data.S memory a'): Recursive type not allowed for public or external contract functions.
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@ library a {
|
||||
function d(b memory) public {}
|
||||
}
|
||||
// ----
|
||||
// TypeError 4103: (149-157): Recursive structs can only be passed as storage pointers to libraries, not as memory objects to contract functions.
|
||||
// TypeError 4103: (149-157='b memory'): Recursive structs can only be passed as storage pointers to libraries, not as memory objects to contract functions.
|
||||
|
||||
+1
-1
@@ -8,4 +8,4 @@ library Test {
|
||||
function f(MyStructName storage s) public {}
|
||||
}
|
||||
// ----
|
||||
// TypeError 4103: (142-164): Internal type is not allowed for public or external functions.
|
||||
// TypeError 4103: (142-164='MyStructName storage s'): Internal type is not allowed for public or external functions.
|
||||
|
||||
@@ -6,4 +6,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError 4103: (126-134): Recursive type not allowed for public or external contract functions.
|
||||
// TypeError 4103: (126-134='S memory'): Recursive type not allowed for public or external contract functions.
|
||||
|
||||
@@ -6,4 +6,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError 4103: (129-137): Recursive type not allowed for public or external contract functions.
|
||||
// TypeError 4103: (129-137='S memory'): Recursive type not allowed for public or external contract functions.
|
||||
|
||||
@@ -7,4 +7,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError 4103: (154-164): Recursive type not allowed for public or external contract functions.
|
||||
// TypeError 4103: (154-164='T memory t'): Recursive type not allowed for public or external contract functions.
|
||||
|
||||
Reference in New Issue
Block a user