solidity/test/libsolidity/semanticTests/inheritance/inherited_function_from_a_library.sol
2023-05-11 10:56:55 -05:00

19 lines
264 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