Functional interface conversion is disabled


Im using kotlin 1.4M1 and are getting the error:
the feature “functional interface conversion” is disabled.
How can I enable it?

Please make sure you’re using 1.4-M1 in IDE plugin and in compiler. For example, install the plugin and create a new Gradle project from the IDEA wizard. It should work (if the Kotlin language version for the project is 1.4, which it should be, if you’re using the 1.4 plugin).

I have the 1.4-M1 IDE plugin, created a new gradle project from the wizard (tried both js/browser kotlin dsl and gradle dsl) and I also get “The feature “functional interface conversion” is disabled”

Indeed, 'org.jetbrains.kotlin.js' plugin doesn’t support the feature in 1.4-M1. It works in M2 though, it will be released soon.

1 Like