Skip to content

Commit

Permalink
Add missing default TypeParameterResolver.EMPTY (#1163)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacSweers committed Sep 21, 2021
1 parent 9d378ff commit d5eed92
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -124,7 +124,7 @@ public fun KSTypeParameter.toTypeVariableName(
*/
@KotlinPoetKspPreview
public fun KSTypeArgument.toTypeName(
typeParamResolver: TypeParameterResolver
typeParamResolver: TypeParameterResolver = TypeParameterResolver.EMPTY
): TypeName {
val typeName = type?.toTypeName(typeParamResolver) ?: return STAR
return when (variance) {
Expand Down

0 comments on commit d5eed92

Please sign in to comment.