diff --git a/library/src-bootstrapped/scala/quoted/Expr.scala b/library/src-bootstrapped/scala/quoted/Expr.scala index c6dc1d648716..95fe08f2e023 100644 --- a/library/src-bootstrapped/scala/quoted/Expr.scala +++ b/library/src-bootstrapped/scala/quoted/Expr.scala @@ -10,7 +10,7 @@ abstract class Expr[+T] private[scala] { this.unseal.showWith(SyntaxHighlight.plain) /** Show a source code like representation of this expression */ - def show(syntaxHighlight: SyntaxHighlight)(using qctx: QuoteContext): String = + def showWith(syntaxHighlight: SyntaxHighlight)(using qctx: QuoteContext): String = this.unseal.showWith(syntaxHighlight) /** Return the unlifted value of this expression. diff --git a/library/src-bootstrapped/scala/quoted/Type.scala b/library/src-bootstrapped/scala/quoted/Type.scala index 7f9dacba7adf..b0ad55fda478 100644 --- a/library/src-bootstrapped/scala/quoted/Type.scala +++ b/library/src-bootstrapped/scala/quoted/Type.scala @@ -12,7 +12,7 @@ abstract class Type[X <: AnyKind] private[scala] { this.unseal.showWith(SyntaxHighlight.plain) /** Show a source code like representation of this type */ - def show(syntaxHighlight: SyntaxHighlight)(using qctx: QuoteContext): String = + def showWith(syntaxHighlight: SyntaxHighlight)(using qctx: QuoteContext): String = this.unseal.showWith(syntaxHighlight) /** View this expression `quoted.Type[T]` as a `TypeTree` */ diff --git a/tests/run-macros/i6270/Macro_1.scala b/tests/run-macros/i6270/Macro_1.scala index 581dee3a9750..ceae4bae858e 100644 --- a/tests/run-macros/i6270/Macro_1.scala +++ b/tests/run-macros/i6270/Macro_1.scala @@ -15,6 +15,6 @@ object api { private def reflImplColor(x: Expr[String])(using qctx: QuoteContext) : Expr[String] = { import qctx.tasty._ - Expr(x.show(ANSI)) + Expr(x.showWith(ANSI)) } }