ahulyk
10/19/2018, 7:59 AMkotlin {
experimental {
newInference = "enable" //this does not compile
}
}
because ExperimentalExtension is missing newInference variable
org.jetbrains.kotlin.gradle.dsl.ExperimentalExtension:
open class ExperimentalExtension {
var coroutines: Coroutines? = null
}
hho
10/19/2018, 8:10 AMjw
10/19/2018, 12:45 PM-X
flags for now. I forget the names which enable the new inference. There's two of them...ahulyk
10/19/2018, 1:29 PMafterEvaluate {
tasks.withType(KotlinCompile::class)
.forEach {
it.kotlinOptions { freeCompilerArgs = listOf("-Xnew-inference") }
}
}
fix the issue 🙂