Why does the `componentN()` function of data class...
# ksp
a
Why does the
componentN()
function of data classes have modifier override but has no SuperClass with the same function? Does anybody know ?
j
Do you mean the ones you write yourself?
a
If I declare a class like this:
Copy code
data class Foo(val a:Int, val b:Long)
The KSClassDeclaration will offer the KSFunctionDeclaration for
component1():Int
and
component2():Long
and KSFunctionDeclaration modifier for both functions contains
Modifier.Override
j
Oh sorry I missed that this is the KSP channel. I don't know then 😅
blob no problem 1