Slackbot
09/14/2018, 8:59 AMlex
09/14/2018, 9:00 AMpniederw
09/14/2018, 9:01 AMlex
09/14/2018, 9:02 AMorangy
09/14/2018, 9:05 AMpniederw
09/14/2018, 9:08 AMvoid 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>()
.stanislav.erokhin
09/14/2018, 9:12 AMpniederw
09/14/2018, 9:13 AMkarelpeeters
09/14/2018, 9:44 AMpniederw
09/14/2018, 9:51 AMkarelpeeters
09/14/2018, 10:23 AM