diff options
Diffstat (limited to 'test/libsolidity/ASTJSON/address_payable.sol')
-rw-r--r-- | test/libsolidity/ASTJSON/address_payable.sol | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/libsolidity/ASTJSON/address_payable.sol b/test/libsolidity/ASTJSON/address_payable.sol new file mode 100644 index 00000000..f7cc66cb --- /dev/null +++ b/test/libsolidity/ASTJSON/address_payable.sol @@ -0,0 +1,11 @@ +contract C { + mapping(address => address payable) public m; + function f(address payable arg) public returns (address payable r) { + address payable a = m[arg]; + r = arg; + address c = address(this); + m[c] = address(0); + } +} + +// ---- |