File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change
1
+ -- Error: tests/neg/i6436.scala:5:9 ------------------------------------------------------------------------------------
2
+ 5 | case '{ StringContext(${ExprSeq(parts)}: _*) } => // error
3
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4
+ | no implicit argument of type scala.quoted.QuoteContext was found
5
+ -- [E006] Unbound Identifier Error: tests/neg/i6436.scala:6:34 ---------------------------------------------------------
6
+ 6 | val ps: Seq[Expr[String]] = parts // error
7
+ | ^^^^^
8
+ | Not found: parts
9
+
10
+ longer explanation available when compiling with `-explain`
Original file line number Diff line number Diff line change
1
+ import scala .quoted ._
2
+ import scala .quoted .matching ._
3
+ def f (sc : quoted.Expr [StringContext ]): Unit = {
4
+ sc match {
5
+ case ' { StringContext ($ {ExprSeq (parts)}: _* ) } => // error
6
+ val ps : Seq [Expr [String ]] = parts // error
7
+ }
8
+ }
You can’t perform that action at this time.
0 commit comments