diff options
author | chriseth <c@ethdev.com> | 2015-12-21 22:37:51 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-12-21 22:37:51 +0800 |
commit | 2466fb68a026869f2c3c9a5ae55b77535b7c03d7 (patch) | |
tree | 8c4c34398220449afb12e023feeb3e3c76cc14bd /test/libsolidity | |
parent | 6f78998aaf0bafe9fc68ffa4d0d37f2364d6f81e (diff) | |
parent | 79c5d032fee1d9e96db9540dbafd312626d7711a (diff) | |
download | dexon-solidity-2466fb68a026869f2c3c9a5ae55b77535b7c03d7.tar.gz dexon-solidity-2466fb68a026869f2c3c9a5ae55b77535b7c03d7.tar.zst dexon-solidity-2466fb68a026869f2c3c9a5ae55b77535b7c03d7.zip |
Merge pull request #308 from chriseth/fixoverloadbug
Fix bug preventing overloads of different array types.
Diffstat (limited to 'test/libsolidity')
-rw-r--r-- | test/libsolidity/SolidityNameAndTypeResolution.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp index fc03dc7c..70c9eb0d 100644 --- a/test/libsolidity/SolidityNameAndTypeResolution.cpp +++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp @@ -2758,6 +2758,17 @@ BOOST_AUTO_TEST_CASE(invalid_args_creating_memory_array) BOOST_CHECK(expectError(text) == Error::Type::TypeError); } +BOOST_AUTO_TEST_CASE(function_overload_array_type) +{ + char const* text = R"( + contract M { + function f(uint[] values); + function f(int[] values); + } + )"; + BOOST_CHECK(success(text)); +} + /*BOOST_AUTO_TEST_CASE(inline_array_declaration_and_passing) { char const* text = R"( |