Check inheritance specifier arguments for interfaces.

This commit is contained in:
chriseth
2017-08-22 11:39:50 +01:00
committed by Alex Beregszaszi
parent b25f0c52ac
commit 7b0046a9aa
2 changed files with 14 additions and 5 deletions
@@ -6735,6 +6735,15 @@ BOOST_AUTO_TEST_CASE(accept_library_creation)
CHECK_SUCCESS(text);
}
BOOST_AUTO_TEST_CASE(reject_interface_constructors)
{
char const* text = R"(
interface I {}
contract C is I(2) {}
)";
CHECK_ERROR(text, TypeError, "Wrong argument count for constructor call: 1 arguments given but expected 0.");
}
BOOST_AUTO_TEST_SUITE_END()
}