Tests for constructor visibility

This commit is contained in:
Alex Beregszaszi 2016-09-06 04:20:57 +01:00 committed by chriseth
parent 7af8ecc27a
commit 65c4e65cb3

View File

@ -3999,6 +3999,16 @@ BOOST_AUTO_TEST_CASE(constant_constructor)
BOOST_CHECK(expectError(text, false) == Error::Type::TypeError);
}
BOOST_AUTO_TEST_CASE(external_constructor)
{
char const* text = R"(
contract test {
function test() external {}
}
)";
BOOST_CHECK(expectError(text, false) == Error::Type::TypeError);
}
BOOST_AUTO_TEST_SUITE_END()