Javier
11/04/2025, 9:27 AM@Transient from Kotlin Serialization. It seems that something has recently changed in Kotlin Serialization — perhaps the checker has been moved to FIR — because now I'm getting the following error:
This property is marked as @Transient and therefore must have an initializing expression
I tried changing the order in which the plugins are applied, as I had a similar issue before with the AtomicFU plugin, but that workaround doesn’t work this time.
I suppose creating a fake in FIR for that property would fix the issue, but since that’s not allowed, what other workaround could I use?dmitriy.novozhilov
11/04/2025, 9:29 AMnull!! initializer in FIR propertyJavier
11/04/2025, 9:30 AMdmitriy.novozhilov
11/04/2025, 9:32 AMJavier
11/04/2025, 9:42 AMFirStub?
atomicProperty.replaceInitializer(FirStub)dmitriy.novozhilov
11/04/2025, 9:42 AMJavier
11/04/2025, 9:44 AMShould not be here: class org.jetbrains.kotlin.fir.resolve.dfa.cfg.FirStub ??? class org.jetbrains.kotlin.fir.resolve.dfa.cfg.FirStub
Javier
11/04/2025, 10:01 AMreplaceInitializer(
buildErrorExpression { diagnostic = KopyConeTemporalDiagnostic }
)dmitriy.novozhilov
11/04/2025, 10:02 AMJavier
11/04/2025, 10:05 AMJavier
11/04/2025, 10:13 AM