From edc98ec3511b1e30d2cd2fb761d51932a6860697 Mon Sep 17 00:00:00 2001 From: RV Jenkins Date: Tue, 7 Dec 2021 20:54:50 +0000 Subject: [PATCH 1/2] ext/kiele_release: v0.1.0-bf2707e1b569 --- ext/kiele_release | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/kiele_release b/ext/kiele_release index 2e0a43095..b4332c9fc 100644 --- a/ext/kiele_release +++ b/ext/kiele_release @@ -1 +1 @@ -v0.1.0-55d1ffb2c3c7 +v0.1.0-bf2707e1b569 From e1a45bf835a3d775f558374076eb1afb71921782 Mon Sep 17 00:00:00 2001 From: Theodoros Kasampalis Date: Tue, 11 Jan 2022 15:49:32 -0600 Subject: [PATCH 2/2] debug test --- libsolidity/ast/Types.cpp | 4 ++++ test/failing-tests | 1 + .../v1_call_to_v2_library_bound_function_returning_struct.sol | 4 ++-- .../nameAndTypeResolution/254_using_for_function_on_int.sol | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp index 84d90313e..d0b1a8dbf 100644 --- a/libsolidity/ast/Types.cpp +++ b/libsolidity/ast/Types.cpp @@ -266,6 +266,10 @@ MemberList const& Type::members(ASTNode const* _currentScope) const if (_currentScope) members += boundFunctions(*this, *_currentScope); m_members[_currentScope] = make_unique(move(members)); +if (const auto *Contract = dynamic_cast(_currentScope)) { +for (auto m : *m_members[_currentScope]) +std::cerr << "AAAAAAAAAAAAAA " << Contract->name() << " : " << m.name << "\n"; +} } return *m_members[_currentScope]; } diff --git a/test/failing-tests b/test/failing-tests index a2d0b0223..7fdba0006 100644 --- a/test/failing-tests +++ b/test/failing-tests @@ -2,6 +2,7 @@ test/compilationTests/milestonetracker test/compilationTests/MultiSigWallet test/compilationTests/stringutils test/compilationTests/gnosis +test_3da9d1a170d98fce459fc6643dcfdd13b9a2bdc191a0a7f0a2f8c5f585fa4c80_v1_call_to_v2_library_bound_function_returning_struct_sol.sol test_006f41af6a558eeee1e5ba55196da1aea6507b78937b6f3cbcaa849307abf3d3_conditional_return_uninitialized_sol.sol test_007047dc117d779f926575529169ed8796204783031f42ed271f9511ea58deb7_scoping_activation_old_sol.sol test_007047dc117d779f926575529169ed8796204783031f42ed271f9511ea58deb7_scoping_activation_sol.sol diff --git a/test/libsolidity/syntaxTests/abiEncoder/v1_call_to_v2_library_bound_function_returning_struct.sol b/test/libsolidity/syntaxTests/abiEncoder/v1_call_to_v2_library_bound_function_returning_struct.sol index 149aefa96..f5cd2438a 100644 --- a/test/libsolidity/syntaxTests/abiEncoder/v1_call_to_v2_library_bound_function_returning_struct.sol +++ b/test/libsolidity/syntaxTests/abiEncoder/v1_call_to_v2_library_bound_function_returning_struct.sol @@ -12,7 +12,7 @@ library L { pragma abicoder v1; import "A"; -contract D { +contract Dadada { using L for uint; function test() public { @@ -20,4 +20,4 @@ contract D { } } // ---- -// TypeError 2428: (B:106-117): The type of return parameter 1, struct L.Item, is only supported in ABI coder v2. Use "pragma abicoder v2;" to enable the feature. +// TypeError 2428: (B:111-122): The type of return parameter 1, struct L.Item, is only supported in ABI coder v2. Use "pragma abicoder v2;" to enable the feature. diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/254_using_for_function_on_int.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/254_using_for_function_on_int.sol index 838118017..186a802ea 100644 --- a/test/libsolidity/syntaxTests/nameAndTypeResolution/254_using_for_function_on_int.sol +++ b/test/libsolidity/syntaxTests/nameAndTypeResolution/254_using_for_function_on_int.sol @@ -1,5 +1,5 @@ library D { function double(uint self) public returns (uint) { return 2*self; } } -contract C { +contract Cacaca { using D for uint; function f(uint a) public returns (uint) { return a.double();