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

Vararg unquote with non-identifier fails to compile #27

Open
LPTK opened this issue Sep 28, 2017 · 0 comments
Open

Vararg unquote with non-identifier fails to compile #27

LPTK opened this issue Sep 28, 2017 · 0 comments
Labels
Milestone

Comments

@LPTK
Copy link
Member

LPTK commented Sep 28, 2017

See the example:

code"Seq(1,2,3)" match {
  case code"Seq[Int]($xs*)" =>
    val xs2 = c"0" +: xs
    code"Seq[Int](${xs2}*)" // works fine
    // a current limitation/bug prevents the following syntax:
    // code"Seq[Int](${c"0" +: xs}*)"
    //   Embedding Error: Quoted expression does not type check: type mismatch;
    //     found: Any; required: Seq[Embedding.IR[Int,?]])
}
@LPTK LPTK added the bug label Sep 28, 2017
@LPTK LPTK added this to the Version 0.4 milestone May 9, 2018
@LPTK LPTK modified the milestones: Version 0.4, Version 1.0 Jul 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant