aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/parsing/address_payable.sol
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-09-13 23:30:54 +0800
committerGitHub <noreply@github.com>2018-09-13 23:30:54 +0800
commite7daed68c1977683546ac3e72d4f84ff538f6711 (patch)
treebb2595e6cc12d420c22bc0373bcb5a7f81c3b0bb /test/libsolidity/syntaxTests/parsing/address_payable.sol
parent5aa5fa78f32c89fcf8f635db026d18a6ba8ef132 (diff)
parentae35a58124852eda9a5e6bf67f9976198d2f9c0f (diff)
downloaddexon-solidity-e7daed68c1977683546ac3e72d4f84ff538f6711.tar.gz
dexon-solidity-e7daed68c1977683546ac3e72d4f84ff538f6711.tar.zst
dexon-solidity-e7daed68c1977683546ac3e72d4f84ff538f6711.zip
Merge pull request #4911 from ethereum/addressPayable
Payable and non-payable address type.
Diffstat (limited to 'test/libsolidity/syntaxTests/parsing/address_payable.sol')
-rw-r--r--test/libsolidity/syntaxTests/parsing/address_payable.sol7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/parsing/address_payable.sol b/test/libsolidity/syntaxTests/parsing/address_payable.sol
new file mode 100644
index 00000000..c29ae1b7
--- /dev/null
+++ b/test/libsolidity/syntaxTests/parsing/address_payable.sol
@@ -0,0 +1,7 @@
+contract C {
+ address payable a;
+ function f(address payable b) public pure returns (address payable c) {
+ address payable d = b;
+ return d;
+ }
+}