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

16 lines
658 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 9571: (146-268): Libraries cannot be abstract.
// TypeError 9231: (48-92): Library functions must be implemented if declared.
// TypeError 9231: (97-143): Library functions must be implemented if declared.
// TypeError 9231: (171-215): Library functions must be implemented if declared.
// TypeError 9231: (220-266): Library functions must be implemented if declared.