Join Slack
Powered by
Quick questions guys, wasn't it in Kotlin 1.3 that...
# android
r
rkeazor
01/03/2019, 3:01 PM
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
louiscad
01/03/2019, 5:29 PM
If you enable new type inference, yes
👍 1
r
rkeazor
01/03/2019, 7:05 PM
Ahh, thanks.
a
ahulyk
01/04/2019, 3:42 PM
it forks fine
ahulyk
01/04/2019, 3:42 PM
just enable it
ahulyk
01/04/2019, 3:42 PM
afterEvaluate { tasks.withType(KotlinCompile::class) .forEach { it.kotlinOptions { freeCompilerArgs += "-Xnew-inference" } } }
👍 1
r
rkeazor
01/05/2019, 6:19 PM
Thanks Guys!
3
Views
Open in Slack
Previous
Next