https://kotlinlang.org logo
#announcements
Title
# announcements
a

Animesh Sahu

11/30/2020, 7:52 AM
This doesn't seem to go away, any body know how to create experimental annotation
v

Vampire

11/30/2020, 9:54 AM
What is the complaint about
+=
on the right side?
a

Animesh Sahu

11/30/2020, 9:55 AM
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

Vampire

11/30/2020, 9:59 AM
ah, ok
And does it only warn in the ide or also if you are building from the command line?
a

Animesh Sahu

11/30/2020, 10:06 AM
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

Vampire

11/30/2020, 10:07 AM
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

Alexey Belkov [JB]

11/30/2020, 1:26 PM
Yes, this is a popular problem https://youtrack.jetbrains.com/issue/KT-28611, please vote
👍 1
2 Views