New J2K: Enable effect-system and new inference

This commit is contained in:
Simon Ogorodnik
2018-05-16 00:51:52 +03:00
committed by Ilya Kirillov
parent 9ca6829bda
commit 4b3fdbcb0b
+15
View File
@@ -1,3 +1,4 @@
import org.jetbrains.kotlin.gradle.dsl.KotlinCompile
plugins {
kotlin("jvm")
@@ -85,4 +86,18 @@ test.apply {
dependsOn(testForWebDemo)
}
configureFreeCompilerArg(true, "-Xeffect-system")
configureFreeCompilerArg(true, "-Xnew-inference")
fun configureFreeCompilerArg(isEnabled: Boolean, compilerArgument: String) {
if (isEnabled) {
allprojects {
tasks.withType<KotlinCompile<*>> {
kotlinOptions {
freeCompilerArgs += listOf(compilerArgument)
}
}
}
}
}
ideaPlugin()