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

Consistently match TypeTree originals with quasiquotes #8388

Closed
scabug opened this issue Mar 10, 2014 · 2 comments
Closed

Consistently match TypeTree originals with quasiquotes #8388

scabug opened this issue Mar 10, 2014 · 2 comments
Assignees
Labels
Milestone

Comments

@scabug
Copy link

@scabug scabug commented Mar 10, 2014

Quasiquotes already use originals to match some type trees:

scala> val tq"(..$args) => $res" = typecheckTyp(tq"(Int, Int) => Int")
args: List[reflect.runtime.universe.Tree] = List(Int, Int)
res: reflect.runtime.universe.Tree = Int

scala> val tq"Int" = typecheckTyp(tq"Int")
scala.MatchError: Int (of class scala.reflect.internal.Trees$TypeTree)
  ... 32 elided

But it's not done consistently.

@scabug
Copy link
Author

@scabug scabug commented Mar 10, 2014

Imported From: https://issues.scala-lang.org/browse/SI-8388?orig=1
Reporter: @densh
Affected Versions: 2.11.0-RC1

@scabug scabug closed this Mar 28, 2014
@scabug
Copy link
Author

@scabug scabug commented Mar 28, 2014

@scabug scabug added the has PR label Apr 7, 2017
@scabug scabug added this to the 2.11.0-RC4 milestone Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants