Go to Intellij Preferences -> Build, Execution, Deployment -> Kotlin Compiler . Update Language version and Api version to the one you wish. This should be the accepted answer.
Go to Intellij Preferences -> Build, Execution, Deployment -> Kotlin Compiler . Update Language version and Api version to the one you wish. This should be the accepted answer.