solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/511_library_function_without_implementation_public.sol
2019-11-05 13:55:31 +01:00

8 lines
219 B
Solidity

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