Fix shadowing struct types by struct member names

This commit is contained in:
a3d4
2021-06-09 12:37:11 +02:00
committed by chriseth
parent 70b8b1c834
commit f59145f21f
11 changed files with 133 additions and 15 deletions
@@ -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);
}
// ----