solidity/test/libsolidity/syntaxTests/freeFunctions/qualified_struct_access.sol
2022-04-01 23:41:18 -05:00

9 lines
429 B
Solidity

function f() returns (uint) { C.S storage t; t.x; }
contract C {
struct S { uint x; }
}
// ----
// Warning 6321: (22-26='uint'): Unnamed return variable can remain unassigned. Add an explicit return with value to all non-reverting code paths or name the variable.
// TypeError 3464: (45-46='t'): This variable is of storage pointer type and can be accessed without prior assignment, which would lead to undefined behaviour.