aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/controlFlow/uninitializedAccess/smoke.sol
blob: 41ced51d69412f62380ea7fd54ea9e403e434ef7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
contract C {
    uint[] s;
    function f() internal returns (uint[] storage a)
    {
        a[0] = 0;
        a = s;
    }
}
// ----
// TypeError: (94-95): This variable is of storage pointer type and can be accessed without prior assignment.