aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/465_error_send_non_payable_fallback.sol
blob: 37c1056f42e5fd674d47f132f186a4208139446b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// This used to be a test for a.send to generate a warning
// because A does not have a payable fallback function.

contract A {
    function() external {}
}

contract B {
    A a;

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