solidity/test/libsolidity/syntaxTests/controlFlow/modifiers/modifier_different_functions.sol
2022-04-01 23:41:18 -05:00

13 lines
358 B
Solidity

contract A {
function f() mod internal returns (uint[] storage) {
revert();
}
function g() mod internal returns (uint[] storage) {
}
modifier mod() virtual {
_;
}
}
// ----
// TypeError 3464: (118-132='uint[] storage'): This variable is of storage pointer type and can be returned without prior assignment, which would lead to undefined behaviour.