mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Directly restart processing calling functions.
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
==== Source: a ====
|
||||
import "b";
|
||||
contract Test is Bar {}
|
||||
==== Source: b ====
|
||||
library Foo {
|
||||
function nop() internal {}
|
||||
}
|
||||
|
||||
contract Bar {
|
||||
function example() public returns (uint256) {
|
||||
foo();
|
||||
return 0;
|
||||
}
|
||||
|
||||
function foo() public {
|
||||
Foo.nop();
|
||||
}
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
contract Bar {
|
||||
function example() public {
|
||||
foo();
|
||||
return;
|
||||
}
|
||||
|
||||
function foo() internal {
|
||||
Foo.nop();
|
||||
}
|
||||
}
|
||||
|
||||
contract Y is Bar {}
|
||||
|
||||
library Foo {
|
||||
function nop() internal {}
|
||||
}
|
||||
Reference in New Issue
Block a user