Skip to content

Commit

Permalink
Tests for constructor visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
axic authored and chriseth committed Sep 6, 2016
1 parent 7af8ecc commit 65c4e65
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/libsolidity/SolidityNameAndTypeResolution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 65c4e65

Please sign in to comment.