solidity/test/libsolidity/syntaxTests/controlFlow/storageReturn/unimplemented_library.sol

16 lines
633 B
Solidity
Raw Normal View History

2019-11-04 13:12:58 +00:00
// This used to work pre-0.6.0.
library L {
function f() public returns(uint[] storage);
function g() public returns(uint[] storage s);
}
2019-11-04 13:12:58 +00:00
abstract library T {
function f() public returns(uint[] storage);
function g() public returns(uint[] storage s);
}
// ----
// TypeError: (146-268): Libraries cannot be abstract.
// TypeError: (48-92): Library functions must be implemented if declared.
// TypeError: (97-143): Library functions must be implemented if declared.
// TypeError: (171-215): Library functions must be implemented if declared.
// TypeError: (220-266): Library functions must be implemented if declared.