When I write specific code, KSP throws an Unexpected class for KtSymbol
error.
#2303
Milestone
8000
Unexpected class for KtSymbol
error.
#2303
My code is:
After I wrote the code above and attempted to compile the program, KSP threw the following exception:
In the stack trace, all instances of my own package name have been replaced with
mykspconfig
.The issue might be stemming from the line of code
val (a) = body
. When I removed this line, KSP resumed functioning normally.kotlin version: 2.1.0
com.google.devtools.ksp: 2.1.0-1.0.29
ksp config:
The text was updated successfully, but these errors were encountered: