solidity/test/libsolidity/syntaxTests/controlFlow/uninitializedAccess/unreachable.sol
2019-01-10 10:36:50 +01:00

12 lines
194 B
Solidity

contract C {
uint[] s;
function f() internal returns (uint[] storage a)
{
revert();
a[0] = 0;
a = s;
}
}
// ----
// Warning: (112-135): Unreachable code.