Skip to content

Add support for annotations in type ascriptions #2945

@jaschdoc

Description

@jaschdoc

The following snippet contains an annotation Anno but KSP does not pick it up.

@Target(AnnotationTarget.TYPE)
annotation class Anno

val myVal: (@Anno String) -> Unit = { str -> println(str) }

KSTypeReference is already a subtype of KSAnnotated so it shouldn't be that difficult to extend it to type ascriptions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3desirable

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions