2018-05-30 16:41:34 +00:00
|
|
|
contract C {
|
|
|
|
function balance() returns (uint) {
|
|
|
|
this.balance; // to avoid pureness warning
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
function transfer(uint amount) {
|
|
|
|
address(this).transfer(amount); // to avoid pureness warning
|
|
|
|
}
|
|
|
|
}
|
|
|
|
contract D {
|
|
|
|
function f() {
|
2018-06-11 12:15:27 +00:00
|
|
|
uint x = (new C()).balance();
|
2018-05-30 16:41:34 +00:00
|
|
|
x;
|
|
|
|
(new C()).transfer(5);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ----
|
|
|
|
// Warning: (17-127): No visibility specified. Defaulting to "public".
|
|
|
|
// Warning: (132-239): No visibility specified. Defaulting to "public".
|
2018-06-11 12:15:27 +00:00
|
|
|
// Warning: (259-359): No visibility specified. Defaulting to "public".
|
2018-05-30 16:41:34 +00:00
|
|
|
// Warning: (17-127): Function state mutability can be restricted to view
|