diff options
author | Christian <c@ethdev.com> | 2015-01-31 23:50:33 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2015-01-31 23:50:33 +0800 |
commit | bf5f476a834222764c305c04940a723ec590ddd1 (patch) | |
tree | 4a8a7753804bd1f8bc7db70f827e0e3e73af873d /SolidityNameAndTypeResolution.cpp | |
parent | 4ea0493b9e52aed708a6723ff50b6a40c7409a0e (diff) | |
download | dexon-solidity-bf5f476a834222764c305c04940a723ec590ddd1.tar.gz dexon-solidity-bf5f476a834222764c305c04940a723ec590ddd1.tar.zst dexon-solidity-bf5f476a834222764c305c04940a723ec590ddd1.zip |
Fix scoping of event arguments.
Diffstat (limited to 'SolidityNameAndTypeResolution.cpp')
-rw-r--r-- | SolidityNameAndTypeResolution.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/SolidityNameAndTypeResolution.cpp b/SolidityNameAndTypeResolution.cpp index 13d3a5d2..b9a7140f 100644 --- a/SolidityNameAndTypeResolution.cpp +++ b/SolidityNameAndTypeResolution.cpp @@ -770,6 +770,15 @@ BOOST_AUTO_TEST_CASE(event_inheritance) BOOST_CHECK_NO_THROW(parseTextAndResolveNames(text)); } +BOOST_AUTO_TEST_CASE(multiple_events_argument_clash) +{ + char const* text = R"( + contract c { + event e1(uint a, uint e1, uint e2); + event e2(uint a, uint e1, uint e2); + })"; + BOOST_CHECK_NO_THROW(parseTextAndResolveNames(text)); +} BOOST_AUTO_TEST_SUITE_END() |