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
In KSP2, the Function0 type here reports the following information in its KSClassDeclaration:
packageName resolves to kotlin.jvm.functions
qualifiedName resolves to kotlin.Function0
simpleName resolves to Function0
(typeOf<Function0<*>>().classifier as KClass<*>).qualifiedName reports kotlin.Function0, but the declaration is defined in the stdlib at kotlin.jvm.functions.Function0.
I'm not sure what the right answer is for this, but more importantly it's also unclear what a code generator (such as KotlinPoet) should use when mapping the type to something like a KotlinPoet TypeName representation.
The text was updated successfully, but these errors were encountered:
Given a function signature like so
In KSP2, the
Function0
type here reports the following information in itsKSClassDeclaration
:packageName
resolves tokotlin.jvm.functions
qualifiedName
resolves tokotlin.Function0
simpleName
resolves toFunction0
(typeOf<Function0<*>>().classifier as KClass<*>).qualifiedName
reportskotlin.Function0
, but the declaration is defined in the stdlib atkotlin.jvm.functions.Function0
.I'm not sure what the right answer is for this, but more importantly it's also unclear what a code generator (such as KotlinPoet) should use when mapping the type to something like a KotlinPoet
TypeName
representation.The text was updated successfully, but these errors were encountered: