mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Converted hash collision error into a fatal type error.
The check is performed during ContractLevelChecker. However, the TypeChecker throws in certain cases when it encounters functions, whose hashes collide.
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
// This contract used to throw
|
||||
abstract contract D {
|
||||
function gsf() public {}
|
||||
function tgeo() public {}
|
||||
}
|
||||
contract C {
|
||||
D d;
|
||||
function g() public returns (uint) {
|
||||
d.d;
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError 1860: (31-113): Function signature hash collision for tgeo()
|
||||
Reference in New Issue
Block a user