Subclassing function types isn't necessary here. Just the presence of the apply method will do the trick.