File tree Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ val x$1: java.lang.String = "One"
3+ scala.Nil.::[java.lang.String](x$1)
4+ }
5+ {
6+ val x$1: java.lang.String = "One"
7+ scala.Nil.::[java.lang.String](x$1)
8+ }
Original file line number Diff line number Diff line change 1+ import scala .quoted ._
2+ import delegate scala .quoted ._
3+
4+ delegate for Toolbox = Toolbox .make(getClass.getClassLoader)
5+
6+ inline def crash = $ {crashImpl}
7+
8+ def crashImpl given (qctx : QuoteContext ) = {
9+ import qctx .tasty ._ // Works if commented out
10+ val res = List (' {" One" }).toExprOfList // Works if replaced with '{"One" :: Nil}
11+ res.show.toExpr
12+ }
Original file line number Diff line number Diff line change 1+ object Test {
2+ def main (args : Array [String ]): Unit = {
3+ val res = crash // Works if these two lines are commented out at the same time
4+ println(res) // Works if these two lines are commented out at the same time
5+
6+ println(crash)
7+ }
8+ }
You can’t perform that action at this time.
0 commit comments