Add support for annotations in type ascriptions
Open
core
feature request
P4
- Dominant language
- Kotlin
- Stars
- 3.5k
- Forks
- 415
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 53
Description
The following snippet contains an annotation `Anno` but KSP does not pick it up.
```kotlin
@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.
Contributor guide
Assessment
This issue has not been assessed yet.