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:
hrkrshnn
2021-02-23 17:09:40 +01:00
parent 596e8dd9b6
commit 66d6d20f65
3 changed files with 15 additions and 1 deletions
@@ -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()