aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/466_does_not_error_transfer_payable_fallback.sol
blob: c343995f12b56d57698d1c25eb6519d520da07ee (plain) (tree)
1
2
3
4
5
6
7
8
9
10



                                                              
                                  




            
                         
                                 


       
// This used to be a test for a.transfer to generate a warning
// because A does not have a payable fallback function.

contract A {
    function() payable external {}
}

contract B {
    A a;

    function() external {
        address(a).transfer(100);
    }
}
// ----