mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Make the message about name not referring to a user-defined type more generic
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user