Skip to content

Commit

Permalink
Fix rebase breakage
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky committed Sep 20, 2018
1 parent c4f95f9 commit e9fe005
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sbt-bridge/test/xsbt/DependencySpecification.scala
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class DependencySpecification {
"""object A {
| def foo = { B; () }
|}""".stripMargin
val srcB = "object B { println("foo") }"
val srcB = """object B { println("foo") }"""

val compilerForTesting = new ScalaCompilerForUnitTesting
val classDependencies =
Expand Down
6 changes: 3 additions & 3 deletions tests/run/xml-interpolation/XmlQuote_1.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import scala.language.implicitConversions
case class Xml(parts: String, args: List[Any])

// Ideally should be an implicit class but the implicit conversion
// has to be a rewrite method
// has to be a inline method
class XmlQuote(ctx: => StringContext) {
rewrite def xml(args: => Any*): Xml = ~XmlQuote.impl('(ctx), '(args))
inline def xml(args: => Any*): Xml = ~XmlQuote.impl('(ctx), '(args))
}

object XmlQuote {
implicit rewrite def XmlQuote(ctx: => StringContext): XmlQuote = new XmlQuote(ctx)
implicit inline def XmlQuote(ctx: => StringContext): XmlQuote = new XmlQuote(ctx)

def impl(ctx: Expr[StringContext], args: Expr[Seq[Any]])
(implicit tasty: Tasty): Expr[Xml] = {
Expand Down

0 comments on commit e9fe005

Please sign in to comment.