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)); } } // ----