A Kotlin compiler plugin for transforming suspend functions to platform-compatible non-suspend functions, such as the JVM Blocking API and CompletableFuture or JS Promise, etc. 🐱
MIT License
36
stars
3
forks
source link
`IllegalArgumentException: Failed requirement` when attempting to copy an annotation with an argument of type `KClass` #60
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.
Previously, when you made a copy, you would just take the
annotations
from the original function and use them. But thenargumentMapping
would throw an exception if an argument of type KClass appeared, so instead we usebuildAnnotation
to build a copy based onannotations
.See also #56