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

Avoid multiple anonymous classes created during macro expansion #417

Open
luksow opened this issue Nov 20, 2024 · 0 comments
Open

Avoid multiple anonymous classes created during macro expansion #417

luksow opened this issue Nov 20, 2024 · 0 comments

Comments

@luksow
Copy link
Contributor

luksow commented Nov 20, 2024

See: https://github.com/scalalandio/chimney/pull/637/files
or: scala/scala3#16723

I think there're couple of places we should take care of it like: EnumLike, ValueEnumLike, AllGenerators and RootJsonFormat. There're compilation warnings associated, e.g.

[warn] -- [E197] Potential Issue Warning: /home/luksow/iterators/kebs/enumeratum/src/main/scala-3/pl/iterators/kebs/enumeratum/KebsEnumeratum.scala:13:4 
[warn] 13 |    new EnumLike[E] {
[warn]    |    ^
[warn]    |   New anonymous class definition will be duplicated at each inline site
[warn]    |
[warn]    | longer explanation available when compiling with `-explain`

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