2019-11-04 13:12:58 +00:00
|
|
|
// This used to work pre-0.6.0.
|
2018-11-13 11:12:08 +00:00
|
|
|
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.
|