aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/functionTypes/payable_internal_function_type.sol
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-03-16 18:33:05 +0800
committerchriseth <chris@ethereum.org>2018-04-12 04:00:04 +0800
commit08e807aea01a443419dc82e159776899d96441ec (patch)
tree7cf573ac419423c4297925467d17e7fff584e847 /test/libsolidity/syntaxTests/functionTypes/payable_internal_function_type.sol
parentbd27ce0e25d298e075de6c77318e7a8df2e27f6d (diff)
downloaddexon-solidity-08e807aea01a443419dc82e159776899d96441ec.tar
dexon-solidity-08e807aea01a443419dc82e159776899d96441ec.tar.gz
dexon-solidity-08e807aea01a443419dc82e159776899d96441ec.tar.bz2
dexon-solidity-08e807aea01a443419dc82e159776899d96441ec.tar.lz
dexon-solidity-08e807aea01a443419dc82e159776899d96441ec.tar.xz
dexon-solidity-08e807aea01a443419dc82e159776899d96441ec.tar.zst
dexon-solidity-08e807aea01a443419dc82e159776899d96441ec.zip
Add expectations.
Diffstat (limited to 'test/libsolidity/syntaxTests/functionTypes/payable_internal_function_type.sol')
-rw-r--r--test/libsolidity/syntaxTests/functionTypes/payable_internal_function_type.sol2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/functionTypes/payable_internal_function_type.sol b/test/libsolidity/syntaxTests/functionTypes/payable_internal_function_type.sol
index 69efaad4..a7cb9d92 100644
--- a/test/libsolidity/syntaxTests/functionTypes/payable_internal_function_type.sol
+++ b/test/libsolidity/syntaxTests/functionTypes/payable_internal_function_type.sol
@@ -1,3 +1,5 @@
contract C {
function (uint) internal payable returns (uint) x;
}
+// ----
+// TypeError: (17-66): Only external function types can be payable.