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

fix #299 - Support Ord quotation #301

Merged
merged 2 commits into from
Mar 23, 2016
Merged

fix #299 - Support Ord quotation #301

merged 2 commits into from
Mar 23, 2016

Conversation

fwbrasil
Copy link
Collaborator

Fixes #299

Problem

Ord currently only can be quoted as a sortBy parameter.

Solution

Make Ord an AST.

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 to make sure that the source files are formatted

@getquill/maintainers

@@ -736,15 +736,24 @@ class QuotationSpec extends Spec {
val q = quote {
(c: Boolean) => if (c) 1 else 2
}
q.ast.body mustEqual If(Ident("c"), Constant(1), Constant(2))
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not related to the change, the test was wrong.

@godenji
Copy link
Contributor

godenji commented Mar 23, 2016

👍

Approved with PullApprove

@gustavoamigo
Copy link
Contributor

👍

Approved with PullApprove

@fwbrasil fwbrasil merged commit 68811d2 into master Mar 23, 2016
@fwbrasil fwbrasil deleted the quote-ord branch March 23, 2016 22:50
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.

3 participants