This message was deleted.
# announcements
s
This message was deleted.
l
what kind of errors are reported?
p
see above (I edited the message)
l
can you provide a sample code?
o
Yes, please, some more context will be really helpful.
p
Ah, the Java method I’m calling changed its signature from
void foo()
to
<T> T foo()
. So it’s not an issue specified to 1.2.70 but an instance of the general issue that unlike Java, Kotlin can’t infer
<T> T foo()
. I’ve been running into this quite a lot as this is a common pattern in Java APIs.
<T> T
is often used to make Java DSLs work and doesn’t return a meaningful result (it’s always
null
). But to call it from Kotlin I need to write non-sensical code such as
foo<AnyClassICanThinkOf>()
.
s
p
indeed, thanks
k
Why did you delete the message?
p
because it’s not a problem with 1.2.70 as I initially claimed, but a long-standing well-known problem.
k
Yeah but it's annoying, now we only get to see half the discussion that happened here.