Skip to content

Commit e26281f

Browse files
committed
Bring back xml-interpolation3 test
1 parent 8fce6dc commit e26281f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

compiler/src/dotty/tools/dotc/typer/Inliner.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ object Inliner {
4747
/** Should call be inlined in this context? */
4848
def isInlineable(tree: Tree)(implicit ctx: Context): Boolean = tree match {
4949
case Block(_, expr) => isInlineable(expr)
50-
case _ => isInlineable(tree.symbol)
50+
case _ => isInlineable(tree.symbol) && !tree.tpe.isInstanceOf[MethodOrPoly]
5151
}
5252

5353
/** Try to inline a call to an inline method. Fail with error if the maximal

tests/disabled/run/xml-interpolation-3/XmlQuote_1.scala renamed to tests/run/xml-interpolation-3/XmlQuote_1.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import scala.quoted._
2-
import scala.tasty.Tasty
2+
import scala.tasty.Reflection
33

44
import scala.language.implicitConversions
55

@@ -8,7 +8,7 @@ case class Xml(parts: String, args: List[Any])
88
object XmlQuote {
99

1010
implicit object SCOps {
11-
inline def xml(this inline ctx: StringContext)(args: => Any*): Xml =
11+
inline def (inline ctx: StringContext) xml (args: => Any*): Xml =
1212
~XmlQuote.impl(ctx, '(args))
1313
}
1414

0 commit comments

Comments
 (0)