solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/229_call_to_library_function.sol

12 lines
274 B
Solidity

// This used to work in pre-0.6.0.
library Lib {
function min(uint, uint) public returns (uint);
}
contract Test {
function f() public {
uint t = Lib.min(12, 7);
}
}
// ----
// TypeError 9231: (53-100): Library functions must be implemented if declared.