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

9 lines
220 B
Solidity

contract C {
struct S { uint y; }
function f() public pure {
S memory x = x.y;
}
}
// ----
// DeclarationError 7576: (90-91='x'): Undeclared identifier. "x" is not (or not yet) visible at this point.