mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge remote-tracking branch 'origin/develop' into breaking
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
contract C {
|
||||
error E(int bytes, bytes x);
|
||||
}
|
||||
// ----
|
||||
// ParserError 2314: (29-34): Expected ',' but got 'bytes'
|
||||
@@ -0,0 +1,12 @@
|
||||
contract C {
|
||||
enum EnumType {A, B, C}
|
||||
|
||||
struct StructType {
|
||||
uint x;
|
||||
}
|
||||
|
||||
error E1(StructType StructType);
|
||||
error E2(EnumType EnumType);
|
||||
error E3(EnumType StructType, StructType EnumType);
|
||||
}
|
||||
// ----
|
||||
@@ -0,0 +1,9 @@
|
||||
error E1(function() internal);
|
||||
error E2(S);
|
||||
|
||||
struct S {
|
||||
S[] ss;
|
||||
}
|
||||
// ----
|
||||
// TypeError 3417: (9-29): Internal or recursive type is not allowed as error parameter type.
|
||||
// TypeError 3417: (40-41): Internal or recursive type is not allowed as error parameter type.
|
||||
@@ -4,6 +4,3 @@ contract C {
|
||||
}
|
||||
// ----
|
||||
// TypeError 3448: (14-35): Type containing a (nested) mapping is not allowed as error parameter type.
|
||||
// TypeError 3417: (14-35): Internal or recursive type is not allowed as error parameter type.
|
||||
// TypeError 3448: (70-91): Type containing a (nested) mapping is not allowed as error parameter type.
|
||||
// TypeError 3417: (70-91): Internal or recursive type is not allowed as error parameter type.
|
||||
|
||||
Reference in New Issue
Block a user