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

Materialize encoding for generic value class. #657

Merged
merged 1 commit into from
Dec 10, 2016
Merged

Conversation

mxl
Copy link
Contributor

@mxl mxl commented Dec 2, 2016

Fixes #655

Problem

Generic value class encoder materialization does not respect it's real type parameter.

Solution

Get value class constructor signature with m.typeSignature.asSeenFrom(t, t.typeSymbol).

Notes

Replaced "wrapped value" with "value class" terminology.

Checklist

  • Unit test all changes
  • Update README.md if applicable
  • Add [WIP] to the pull request title if it's work in progress
  • Squash commits that aren't meaningful changes
  • Run sbt scalariformFormat test:scalariformFormat to make sure that the source files are formatted

@getquill/maintainers

… with "value class". Remove duplicated test in EncodeBindVariablesSpec.scala (the same one is in ContextMacroSpec.scala).
@mxl mxl changed the title Materialize encoding for generic value class. Replace "wrapped value"… Materialize encoding for generic value class. Dec 2, 2016
@mxl
Copy link
Contributor Author

mxl commented Dec 7, 2016

@getquill/maintainers Could somebody review this PR?

@fwbrasil fwbrasil merged commit 2dac797 into zio:master Dec 10, 2016
@mxl mxl deleted the fix-655 branch December 10, 2016 09:40
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