pguardiola
05/28/2017, 7:28 AMpublic 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
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
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?