From c86a46b84d13cd0c12c6a2ea1bc2b096b9d1a539 Mon Sep 17 00:00:00 2001 From: Christian Date: Thu, 22 Jan 2015 01:02:38 +0100 Subject: Type resolution for function modifiers. --- SolidityParser.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'SolidityParser.cpp') diff --git a/SolidityParser.cpp b/SolidityParser.cpp index e476bee3..e331b9c6 100644 --- a/SolidityParser.cpp +++ b/SolidityParser.cpp @@ -567,6 +567,16 @@ BOOST_AUTO_TEST_CASE(modifier_arguments) BOOST_CHECK_NO_THROW(parseText(text)); } +BOOST_AUTO_TEST_CASE(modifier_invocation) +{ + char const* text = "contract c {\n" + " modifier mod1(uint a) { if (msg.sender == a) _ }\n" + " modifier mod2 { if (msg.sender == 2) _ }\n" + " function f() mod1(7) mod2 { }\n" + "}\n"; + BOOST_CHECK_NO_THROW(parseText(text)); +} + BOOST_AUTO_TEST_SUITE_END() } -- cgit