mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix tests regarding contract type conversion.
This commit is contained in:
committed by
Alex Beregszaszi
parent
c8232d9759
commit
b800bfb021
@@ -379,7 +379,7 @@ In this example::
|
||||
}
|
||||
|
||||
contract A {
|
||||
address child;
|
||||
B child;
|
||||
|
||||
function test() public {
|
||||
child = (new B).value(10)(); //construct a new B with 10 wei
|
||||
|
||||
+1
-1
@@ -901,7 +901,7 @@ for each ``_KeyType``, recursively.
|
||||
function f() public returns (uint) {
|
||||
MappingExample m = new MappingExample();
|
||||
m.update(100);
|
||||
return m.balances(this);
|
||||
return m.balances(address(this));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user