Hey there :wave: If I have a class in Java defined...
# codereview
p
Hey there 👋 If I have a class in Java defined like this
Copy code
public static <T> PropertyValue<Function<T, String>> lineColor(Function<T, String> function) {
    return new PaintPropertyValue<>("line-color", function);
  }
And I want to consume it from a kotlin function in wich I pass the parameter
function
like this
Copy code
private fun foo(bar: Function<Any, Any>) {
  lineColor(bar)
}
I get the following error
None of the following functions can be called with the arguments supplied
Do you know why? Curious thing is that if I convert the class from Java the function generated is
Copy code
private fun foo(bar: Function<*, *>) {
  lineColor(bar)
}
And I'm still getting the same error How should I define the function? What am I missing?