diff options
Diffstat (limited to 'test/libsolidity/syntaxTests/nameAndTypeResolution/464_error_transfer_no_fallback.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/nameAndTypeResolution/464_error_transfer_no_fallback.sol | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/464_error_transfer_no_fallback.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/464_error_transfer_no_fallback.sol deleted file mode 100644 index 67398de7..00000000 --- a/test/libsolidity/syntaxTests/nameAndTypeResolution/464_error_transfer_no_fallback.sol +++ /dev/null @@ -1,15 +0,0 @@ -// This used to be a test for a.transfer to generate a warning -// because A does not have a payable fallback function. - -contract A {} - -contract B { - A a; - - function() external { - a.transfer(100); - } -} -// ---- -// Warning: (192-202): 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. -// TypeError: (192-202): Value transfer to a contract without a payable fallback function. |