mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
10 lines
282 B
Solidity
10 lines
282 B
Solidity
contract C {
|
|
struct S { uint a; }
|
|
function f() public pure returns(address) {
|
|
S memory s = S(42);
|
|
return s.address;
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError 9582: (129-138): Member "address" not found or not visible after argument-dependent lookup in struct C.S memory.
|