Gleb Minaev
01/30/2025, 1:55 AMpluginContext.referenceClass(FqName("kotlin.time.TimeSource.Monotonic"))!!
As this overload of the referenceClass
is deprecated, I rewrote it as
pluginContext.referenceClass(ClassId(FqName("kotlin.time.TimeSource"), Name.identifier("Monotonic")))!!
But now it does not find the Monotonic
object. While
pluginContext.referenceClass(ClassId(FqName("kotlin.time"), Name.identifier("TimeSource")))!!
works fine. The problem can be reproduced here. What am I missing?ephemient
01/30/2025, 2:45 AMClassId(packageFqName = FqName("kotlin.time"), relativeFqName = FqName("TimeSource.Monotonic"))