Quick questions guys, wasn't it in Kotlin 1.3 that...
# android
r
Quick questions guys, wasn't it in Kotlin 1.3 that SAMs created in kotlin can be used as lambdas? I know before 1.3 it only worked with SAMs created in Java
l
If you enable new type inference, yes
👍 1
r
Ahh, thanks.
a
it forks fine
just enable it
afterEvaluate { tasks.withType(KotlinCompile::class) .forEach { it.kotlinOptions { freeCompilerArgs += "-Xnew-inference" } } }
👍 1
r
Thanks Guys!