while trying to build a Kotlin/Ktor application in IntelliJ, multiple warnings of the form
Warning:(276, 6) Kotlin: This class can only be used with the compiler argument '-Xuse-experimental=kotlin.Experimental'
are output. The warnings refer to
@UseExperimental(KtorExperimentalLocationsAPI::class)
so I expected to satisfy the warning by setting Settings -> Build -> Compiler -> Kotlin Compiler -> Additional command line parameters to -version -Xuse-experimental=kotlin.Experimental. (-version was already there). But the warning is still generated. How do I satisfy it? Thanks in expectation.