tipsy
06/04/2017, 10:54 AM@FunctionalInterface
public interface ErrorHandler {
void handle(Request request, Response response);
}
i have typealias ErrorHandler = (request : Request, response : Response) -> Unit
which seems to work fine, except for when i try to call it in java
error(500, (req, res) -> {
// return type expected
});
can i make this work in both languages somehow? (it used to work fine when the project was all java)voddan
06/04/2017, 11:44 AMkotlin.Unit
or null
tipsy
06/04/2017, 12:46 PMhughg
06/05/2017, 7:52 PMNothing
or Nothing?
work as the return type?tipsy
06/05/2017, 7:54 PM