Skip to content

Commit e1a45bf

Browse files
committed
debug test
1 parent edc98ec commit e1a45bf

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

libsolidity/ast/Types.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,10 @@ MemberList const& Type::members(ASTNode const* _currentScope) const
266266
if (_currentScope)
267267
members += boundFunctions(*this, *_currentScope);
268268
m_members[_currentScope] = make_unique<MemberList>(move(members));
269+
if (const auto *Contract = dynamic_cast<const ContractDefinition *>(_currentScope)) {
270+
for (auto m : *m_members[_currentScope])
271+
std::cerr << "AAAAAAAAAAAAAA " << Contract->name() << " : " << m.name << "\n";
272+
}
269273
}
270274
return *m_members[_currentScope];
271275
}

test/failing-tests

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ test/compilationTests/milestonetracker
22
test/compilationTests/MultiSigWallet
33
test/compilationTests/stringutils
44
test/compilationTests/gnosis
5+
test_3da9d1a170d98fce459fc6643dcfdd13b9a2bdc191a0a7f0a2f8c5f585fa4c80_v1_call_to_v2_library_bound_function_returning_struct_sol.sol
56
test_006f41af6a558eeee1e5ba55196da1aea6507b78937b6f3cbcaa849307abf3d3_conditional_return_uninitialized_sol.sol
67
test_007047dc117d779f926575529169ed8796204783031f42ed271f9511ea58deb7_scoping_activation_old_sol.sol
78
test_007047dc117d779f926575529169ed8796204783031f42ed271f9511ea58deb7_scoping_activation_sol.sol

test/libsolidity/syntaxTests/abiEncoder/v1_call_to_v2_library_bound_function_returning_struct.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ library L {
1212
pragma abicoder v1;
1313
import "A";
1414

15-
contract D {
15+
contract Dadada {
1616
using L for uint;
1717

1818
function test() public {
1919
uint(1).f();
2020
}
2121
}
2222
// ----
23-
// 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.
23+
// 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.

test/libsolidity/syntaxTests/nameAndTypeResolution/254_using_for_function_on_int.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
library D { function double(uint self) public returns (uint) { return 2*self; } }
2-
contract C {
2+
contract Cacaca {
33
using D for uint;
44
function f(uint a) public returns (uint) {
55
return a.double();

0 commit comments

Comments
 (0)