solidity/test/libsolidity/semanticTests/intheritance/inherited_function_from_a_library.sol

22 lines
296 B
Solidity
Raw Normal View History

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();
}
}
2020-04-23 13:59:42 +00:00
// ====
// compileViaYul: also
// ----
// g() -> 1