Skip to content

No TypeParameter found for index T #2065

Description

@Scogun

Describe the bug
After upgrade from 1.18.1 version to 2.0.0 I started to face an issue No TypeParameter found for index T

To Reproduce
I had next code:

(this.declaration as KSClassDeclaration).getAllSuperTypes().any { it.toClassName() == ITERABLE }

I started to face next issue:

KSType 'Comparable<String>' has type arguments, which are not supported for ClassName conversion. Use KSType.toTypeName().

After switching on toTypeName I face No TypeParameter found for index T

(this.declaration as KSClassDeclaration).getAllSuperTypes().any { it.toTypeName() == ITERABLE }

Expected behavior
toTypeName should work for wide generic classes.

Additional context
Maybe I don't see the reason why toTypeName requests TypeParameterResolver.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions