Skip to content

Instantly share code, notes, and snippets.

@zainab-ali
Created February 3, 2026 11:28
Show Gist options
  • Select an option

  • Save zainab-ali/4a266814dcb02fb99b67d8210a913d0b to your computer and use it in GitHub Desktop.

Select an option

Save zainab-ali/4a266814dcb02fb99b67d8210a913d0b to your computer and use it in GitHub Desktop.
Scalameta 4.14.6 `q` macro miscalculates positions on substituting with `..$`
//> using scala 2.13.18
//> using dep "org.scalameta::scalameta::4.14.6"
import scala.meta._
val terms = List(q"Foo")
val code = q"""
..${terms}; "any message"
"""
println(code.syntax)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment