You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you have a KSType that represents a functional type with a receiver (e.g. String.() -> Unit), and you are trying to get the list of all annotations of the type, there is no @kotlin.ExtensionFunctionType. But, functionalType.toString() call returns this:
However, without it seems impossible to determine, whether any functional type has a receiver or not.
Maybe there is another way?
I created a branch in my repo that reproduces this behaviour. To reproduce, run this unit test. Input to the test is here. Code of the processor is here.
The text was updated successfully, but these errors were encountered:
When you have a
KSType
that represents a functional type with a receiver (e.g.String.() -> Unit
), and you are trying to get the list of all annotations of the type, there is no@kotlin.ExtensionFunctionType
. But,functionalType.toString()
call returns this:In the debugger, I see this:
Somehow, this annotation is omitted by ksp.
However, without it seems impossible to determine, whether any functional type has a receiver or not.
Maybe there is another way?
I created a branch in my repo that reproduces this behaviour. To reproduce, run this unit test. Input to the test is here. Code of the processor is here.
The text was updated successfully, but these errors were encountered: