mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Use all referenced errors.
This commit is contained in:
@@ -3,4 +3,4 @@ contract test {
|
||||
error tgeo();
|
||||
}
|
||||
// ----
|
||||
// TypeError 4883: (0-52): Error signature hash collision for tgeo()
|
||||
// TypeError 4883: (43-47): Error signature hash collision for tgeo()
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
library L {
|
||||
error gsf();
|
||||
}
|
||||
contract test {
|
||||
error tgeo();
|
||||
function f(bool a) public {
|
||||
if (a)
|
||||
revert L.gsf();
|
||||
else
|
||||
revert tgeo();
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError 4883: (57-61): Error signature hash collision for tgeo()
|
||||
Reference in New Issue
Block a user