https://kotlinlang.org logo
#k2-early-adopters
Title
# k2-early-adopters
o

Ola Adolfsson

03/12/2024, 8:45 AM
Hi! Is there a compiler flag to hide warnings for non-exportable parameter? We’re drowning in them atm.
k

kirillrakhman

03/12/2024, 8:48 AM
@Sasha can you help?
s

Sasha

03/12/2024, 9:03 AM
You may suppress the all warnings on file:
@file:Suppress("NON_EXPORTABLE_TYPE")
However, if it works ok with K1, it is probably a bug in K2 frontend check.
o

Ola Adolfsson

03/12/2024, 12:05 PM
That might work. However, then I need to change in many files 🙂