Merge pull request #801 from chriseth/sol_parseErrorForHashCollision

Check for hash collisions already before compiling.
This commit is contained in:
chriseth 2015-01-14 12:19:39 +01:00
commit f8f1ec30f4

View File

@ -357,6 +357,18 @@ BOOST_AUTO_TEST_CASE(function_canonical_signature_type_aliases)
}
}
BOOST_AUTO_TEST_CASE(hash_collision_in_interface)
{
char const* text = "contract test {\n"
" function gsf() {\n"
" }\n"
" function tgeo() {\n"
" }\n"
"}\n";
BOOST_CHECK_THROW(parseTextAndResolveNames(text), TypeError);
}
BOOST_AUTO_TEST_SUITE_END()
}