solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/511_library_function_without_implementation_public.sol

8 lines
224 B
Solidity
Raw Normal View History

2019-11-04 13:12:58 +00:00
// This used to work pre-0.6.0.
library L {
// This can be used as an "interface", hence it is allowed.
function f() public;
}
2019-11-04 13:12:58 +00:00
// ----
// TypeError 9231: (112-132): Library functions must be implemented if declared.