Skip to content

Fix SerializingLift.asCode for case objects - #95

Merged
tribbloid merged 1 commit into
tek:masterfrom
DmytroMitin:master
Nov 7, 2022
Merged

tribbloid merged 1 commit into
tek:masterfrom
DmytroMitin:master

Conversation

@DmytroMitin

@DmytroMitin DmytroMitin commented Nov 7, 2022 •

Copy link
Copy Markdown
Contributor

If value is a case object, it's not enough to strip the dollar suffix, it's necessary to add .type to have an object type.

Discovered in https://stackoverflow.com/questions/62458950/how-to-use-quasiquotes-with-previously-defined-object

@tribbloid

Copy link
Copy Markdown
Collaborator

Thanks a lot Professor, this was my oversight.

nicolasstucki have proposed to yield staged quote instead of code. I just didn't have time to implement it yet. Even if I do, the best place for it would be scalameta, not here

@tribbloid
tribbloid merged commit 81e7dc3 into tek:master Nov 7, 2022
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

Successfully merging this pull request may close these issues.

2 participants