Scala Programming Language
  1. Scala Programming Language
  2. SI-8016

q"..$xs" fails even though it shoulld be equivalent to q"{..$xs}"

    Details

      Description

      scala> val xs = q"1" :: q"2" :: Nil
      xs: List[reflect.runtime.universe.Literal] = List(1, 2)
      
      scala> q"{..$xs}"
      res1: reflect.runtime.universe.Tree =
      {
        1;
        2
      }
      
      scala> q"..$xs"
      <console>:31: error: Can't splice with .. here
                    q"..$xs"
                         ^
      

        Activity

        Hide
        Denys Shabalin added a comment -

        Fixed in my wip branch.

        Show
        Denys Shabalin added a comment - Fixed in my wip branch.
        Hide
        Denys Shabalin added a comment -
        Show
        Denys Shabalin added a comment - Fixed in https://github.com/scala/scala/pull/3255

          People

          • Assignee:
            Denys Shabalin
            Reporter:
            Denys Shabalin
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development