mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
12 lines
243 B
Solidity
12 lines
243 B
Solidity
|
contract A {
|
||
|
struct S {
|
||
|
address payable a;
|
||
|
}
|
||
|
S s;
|
||
|
function f() public {
|
||
|
s.a = address(this);
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// TypeError: (110-123): Type address is not implicitly convertible to expected type address payable.
|