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 {
9292 """ object A {
9393 | def foo = { B; () }
9494 |}""" .stripMargin
95- val srcB = " object B { println(" foo " ) } "
95+ val srcB = """ object B { println("foo") }"" "
9696
9797 val compilerForTesting = new ScalaCompilerForUnitTesting
9898 val classDependencies =
Original file line number Diff line number Diff line change @@ -6,13 +6,13 @@ import scala.language.implicitConversions
66case class Xml (parts : String , args : List [Any ])
77
88// Ideally should be an implicit class but the implicit conversion
9- // has to be a rewrite method
9+ // has to be a inline method
1010class 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))
1212}
1313
1414object XmlQuote {
15- implicit rewrite def XmlQuote (ctx : => StringContext ): XmlQuote = new XmlQuote (ctx)
15+ implicit inline def XmlQuote (ctx : => StringContext ): XmlQuote = new XmlQuote (ctx)
1616
1717 def impl (ctx : Expr [StringContext ], args : Expr [Seq [Any ]])
1818 (implicit tasty : Tasty ): Expr [Xml ] = {
You can’t perform that action at this time.
0 commit comments