mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix shadowing struct types by struct member names
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);
|
||||
}
|
||||
// ----
|
||||
Reference in New Issue
Block a user