ForteScarlet / kotlin-suspend-transform-compiler-plugin

A Kotlin compiler plugin for transforming suspend functions to platform-compatible non-suspend functions, such as the JVM Blocking API and CompletableFuture 🐱
MIT License
33 stars 3 forks source link

`IllegalArgumentException: Failed requirement` when attempting to copy an annotation with an argument of type `KClass` #60

Closed ForteScarlet closed 2 months ago

ForteScarlet commented 2 months ago

Previously, when you made a copy, you would just take the annotations from the original function and use them. But then argumentMapping would throw an exception if an argument of type KClass appeared, so instead we use buildAnnotation to build a copy based on annotations.

See also #56