Make the message about name not referring to a user-defined type more generic

This commit is contained in:
wechman
2022-11-04 08:46:53 +01:00
committed by Nikola Matic
parent c297183467
commit d5428af5bb
13 changed files with 13 additions and 13 deletions
@@ -1,4 +1,4 @@
error E(uint);
function f(E x) pure returns (uint) {}
// ----
// TypeError 5172: (26-27): Name has to refer to a struct, enum or contract.
// TypeError 5172: (26-27): Name has to refer to a user-defined type.
@@ -9,4 +9,4 @@ contract C {
}
}
// ----
// TypeError 5172: (91-92): Name has to refer to a struct, enum or contract.
// TypeError 5172: (91-92): Name has to refer to a user-defined type.
@@ -4,4 +4,4 @@ contract C {
E x;
}
// ----
// TypeError 5172: (29-30): Name has to refer to a struct, enum or contract.
// TypeError 5172: (29-30): Name has to refer to a user-defined type.
@@ -6,4 +6,4 @@ contract C {
}
}
// ----
// TypeError 5172: (64-65): Name has to refer to a struct, enum or contract.
// TypeError 5172: (64-65): Name has to refer to a user-defined type.