This doesn't seem to go away, any body know how to...
# announcements
a
This doesn't seem to go away, any body know how to create experimental annotation
v
What is the complaint about
+=
on the right side?
a
Its just complaining that it is reassigning a list (as list is not mutable and adding element through creating a new list), so says explicitly put like
freeCompilerArgs = freeCompilerArgs + listOf(...)
image.png
v
ah, ok
And does it only warn in the ide or also if you are building from the command line?
a
It ran away putting it under sourcesets.all
Copy code
all {
    languageSettings.useExperimentalAnnotation("kotlin.RequiresOptIn")
}
instead of targets.all and specifying it like on the jvm
v
Ah, so the free args are not parsed for content when importing the project, but you need to use the proper model option
🙂 1
a
Yes, this is a popular problem https://youtrack.jetbrains.com/issue/KT-28611, please vote
👍 1