Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@KeepGeneratedSerializer cannot be used with typealias #2836

Open
sschuberth opened this issue Oct 15, 2024 · 0 comments
Open

@KeepGeneratedSerializer cannot be used with typealias #2836

sschuberth opened this issue Oct 15, 2024 · 0 comments

Comments

@sschuberth
Copy link
Contributor

Describe the bug

When I have

internal typealias DependencyMap = @Serializable(DependencyMapSerializer::class) Map<String, Dependency>

I'd expect to be able to do

internal typealias DependencyMap = @Serializable(DependencyMapSerializer::class) @KeepGeneratedSerializer Map<String, Dependency>

but that does not compile, saying WRONG_ANNOTATION_TARGET.

Environment

  • Kotlin version: 2.0.21
  • Library version: 1.7.3
  • Kotlin platforms: JVM
  • Gradle version: 8.10.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant