solidity/test/libsolidity/syntaxTests/imports/inheritance_abi_encoder_match.sol

21 lines
384 B
Solidity
Raw Normal View History

2019-08-16 13:12:26 +00:00
==== Source: A.sol ====
2020-11-23 18:06:44 +00:00
pragma abicoder v2;
2019-08-16 13:12:26 +00:00
contract A
{
struct S { uint a; }
S public s;
function f(S memory _s) public returns (S memory,S memory) { }
}
==== Source: B.sol ====
2020-11-23 18:06:44 +00:00
pragma abicoder v2;
2019-08-16 13:12:26 +00:00
import "./A.sol";
contract B is A { }
==== Source: C.sol ====
2020-11-23 18:06:44 +00:00
pragma abicoder v2;
2019-08-16 13:12:26 +00:00
import "./B.sol";
contract C is B { }
// ----