solidity/test/libsolidity/semanticTests/various/senders_balance.sol
2020-04-27 16:15:57 +02:00

23 lines
337 B
Solidity

contract C {
function f() public view returns (uint256) {
return msg.sender.balance;
}
}
contract D {
C c = new C();
constructor() public payable {}
function f() public view returns (uint256) {
return c.f();
}
}
// ====
// compileViaYul: also
// ----
// constructor(), 27 wei ->
// f() -> 27