On 29.04.21 15:32, Christopher Smith wrote:
Sure, this is theoretically possible (though many functional interfaces aren't annotated), but the convenience I'm asking about would have to be compile-time, because it would depend on the declared type (which is part of why I suspect it might not even make semantic sense in the underlying dynamic model).
why does it have to be compile time only? I don't quite get that. The problem you have to face is of course an Object, which realizes a functional interface, but also has a call method (not part of the interface) bye Jochen