solidity/test/libsolidity/semanticTests/intheritance/inherited_function_from_a_library.sol
2020-03-19 14:42:25 +01:00

20 lines
265 B
Solidity

library A {
function f() internal returns (uint256) {
return 1;
}
}
contract B {
function f() internal returns (uint256) {
return 2;
}
function g() public returns (uint256) {
return A.f();
}
}
// ----
// g() -> 1