aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/466_does_not_error_transfer_payable_fallback.sol
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-06-29 00:08:45 +0800
committerchriseth <chris@ethereum.org>2018-06-29 06:23:52 +0800
commiteeef82b2d77c6f956039c57b0598e684254ee6dd (patch)
tree82887915936dbf242d5574c1fe9d61f5ace312d9 /test/libsolidity/syntaxTests/nameAndTypeResolution/466_does_not_error_transfer_payable_fallback.sol
parent4268062985e434b00f07e3f90772b94538933b9c (diff)
downloaddexon-solidity-eeef82b2d77c6f956039c57b0598e684254ee6dd.tar
dexon-solidity-eeef82b2d77c6f956039c57b0598e684254ee6dd.tar.gz
dexon-solidity-eeef82b2d77c6f956039c57b0598e684254ee6dd.tar.bz2
dexon-solidity-eeef82b2d77c6f956039c57b0598e684254ee6dd.tar.lz
dexon-solidity-eeef82b2d77c6f956039c57b0598e684254ee6dd.tar.xz
dexon-solidity-eeef82b2d77c6f956039c57b0598e684254ee6dd.tar.zst
dexon-solidity-eeef82b2d77c6f956039c57b0598e684254ee6dd.zip
Fallback function has to be external: backwards-compatible changes.
Diffstat (limited to 'test/libsolidity/syntaxTests/nameAndTypeResolution/466_does_not_error_transfer_payable_fallback.sol')
-rw-r--r--test/libsolidity/syntaxTests/nameAndTypeResolution/466_does_not_error_transfer_payable_fallback.sol6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/466_does_not_error_transfer_payable_fallback.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/466_does_not_error_transfer_payable_fallback.sol
index 1fa567eb..2b7f8dae 100644
--- a/test/libsolidity/syntaxTests/nameAndTypeResolution/466_does_not_error_transfer_payable_fallback.sol
+++ b/test/libsolidity/syntaxTests/nameAndTypeResolution/466_does_not_error_transfer_payable_fallback.sol
@@ -2,15 +2,15 @@
// because A does not have a payable fallback function.
contract A {
- function() payable public {}
+ function() payable external {}
}
contract B {
A a;
- function() public {
+ function() external {
a.transfer(100);
}
}
// ----
-// Warning: (224-234): Using contract member "transfer" inherited from the address type is deprecated. Convert the contract to "address" type to access the member, for example use "address(contract).transfer" instead.
+// Warning: (228-238): Using contract member "transfer" inherited from the address type is deprecated. Convert the contract to "address" type to access the member, for example use "address(contract).transfer" instead.