File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
tests/run/xml-interpolation Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ class DependencySpecification {
92
92
""" object A {
93
93
| def foo = { B; () }
94
94
|}""" .stripMargin
95
- val srcB = " object B { println(" foo " ) } "
95
+ val srcB = """ object B { println("foo") }"" "
96
96
97
97
val compilerForTesting = new ScalaCompilerForUnitTesting
98
98
val classDependencies =
Original file line number Diff line number Diff line change @@ -6,13 +6,13 @@ import scala.language.implicitConversions
6
6
case class Xml (parts : String , args : List [Any ])
7
7
8
8
// Ideally should be an implicit class but the implicit conversion
9
- // has to be a rewrite method
9
+ // has to be a inline method
10
10
class XmlQuote (ctx : => StringContext ) {
11
- rewrite def xml (args : => Any * ): Xml = ~ XmlQuote .impl('(ctx), ' (args))
11
+ inline def xml (args : => Any * ): Xml = ~ XmlQuote .impl('(ctx), ' (args))
12
12
}
13
13
14
14
object XmlQuote {
15
- implicit rewrite def XmlQuote (ctx : => StringContext ): XmlQuote = new XmlQuote (ctx)
15
+ implicit inline def XmlQuote (ctx : => StringContext ): XmlQuote = new XmlQuote (ctx)
16
16
17
17
def impl (ctx : Expr [StringContext ], args : Expr [Seq [Any ]])
18
18
(implicit tasty : Tasty ): Expr [Xml ] = {
You can’t perform that action at this time.
0 commit comments