hey, does anyone know what else you are supposed t...
# announcements
e
hey, does anyone know what else you are supposed to do other than adding
kotlin.explicitApi()
to get explicit API mode enabled?
l
Using Kotlin 1.4. Why that question, didn't you simply try?
e
I did, no errors or warnings
sync, clean and build.. nothing
l
There's different ways and levels documented here: https://kotlinlang.org/docs/reference/whatsnew14.html#explicit-api-mode-for-library-authors But what you say sounds like a bug that'd be worth reporting on kotl.in/issue
e
I just wonder how something so simply apparently may no work
l
Report the issue and you'll find out eventually 🙂
e
maybe I'm doing something wrong
I'll do
l
@elect Oh, I have an idea. Are you overwriting
freeCompilerArgs
somewhere in your projects instead of use
+=
to ensure you keep existing arguments?
e
..yes
l
Then fix that just like I said by using
+=
in place of
=
and I bet high that it'll work as expected.
e
yep, it works now
thanks Louis
l
Glad I helped 🙂