solidity/test/libsolidity/syntaxTests/scoping/library_inherited.sol
2022-04-01 23:41:18 -05:00

18 lines
415 B
Solidity

library Lib {
function foo(uint256 value) internal returns (uint256) {
return value + 42;
}
}
contract A {
using Lib for uint256;
}
contract B is A {
function bar(uint256 value) public returns (uint256) {
return value.foo(); // Usage of Lib
}
}
// ----
// TypeError 9582: (246-255='value.foo'): Member "foo" not found or not visible after argument-dependent lookup in uint256.