Leeeloo Minai

01/30/2018, 8:10 PM
I will try in this channel. I cannot understand what's going on in the declaration of Filter here: To make it worse, when I isolated that declaration and tried to compile it, the compiler insists that "'invoke' overrides nothing". Here's my simple test: So now I am stuck - I noticed that inheritance hierarchy in IntelliJ mentions some Function1 interface that seems not to be inherited there (but just spitballing here.)


01/31/2018, 8:40 AM
You could try in #http4k, but this seems like more of a language question 🙂 The invoke method in question is inherited from
(HttpHandler) -> HttpHandler
, which is extended by the Filter interface. Which versions of Idea/Kotlin are you using?