Skip to content

Commit

Permalink
debug test
Browse files Browse the repository at this point in the history
  • Loading branch information
theo25 committed Jan 14, 2022
1 parent edc98ec commit d812132
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions libsolidity/ast/Types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,10 @@ MemberList const& Type::members(ASTNode const* _currentScope) const
members += boundFunctions(*this, *_currentScope);
m_members[_currentScope] = make_unique<MemberList>(move(members));
}
if (const auto *Contract = dynamic_cast<const ContractDefinition *>(_currentScope)) {
for (auto m : *m_members[_currentScope])
std::cerr << "AAAAAAAAAAAAAA " << Contract->name() << " : " << m.name << "\n";
}
return *m_members[_currentScope];
}

Expand Down
1 change: 1 addition & 0 deletions test/failing-tests
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ library L {
pragma abicoder v1;
import "A";

contract D {
contract Dadada {
using L for uint;

function test() public {
uint(1).f();
}
}
// ----
// 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.
Original file line number Diff line number Diff line change
@@ -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();
Expand Down

0 comments on commit d812132

Please sign in to comment.