Skip to content

Commit 84c71c8

Browse files
committed
Revert patches of asExprOf
1 parent d16364b commit 84c71c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

community-build/src/scala/dotty/communitybuild/FieldsImpl.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ object FieldsImpl:
1313
s.isValDef && s.tree.asInstanceOf[ValDef].tpt.tpe <:< retType
1414
val projectsTree = from.asTerm
1515
val symbols = TypeTree.of[V].symbol.declaredFields.filter(isProjectField)
16-
val selects = symbols.map(Select(projectsTree, _).asExprOf: Expr[T])
16+
val selects = symbols.map(Select(projectsTree, _).asExprOf[T])
1717
'{ println(${Expr(retType.show)}); ${Varargs(selects)} }

compiler/src-non-bootstrapped/scala/quoted/runtime/impl/QuotesImpl.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class QuotesImpl private (using val ctx: Context) extends Quotes, QuoteUnpickler
6060

6161
/** Convert this to an `quoted.Expr[X]` if this expression is a valid expression of type `X` or throws */
6262
def asExprOf(using scala.quoted.Type[X]): scala.quoted.Expr[X] = {
63-
if isExprOf[X] then
63+
if self.isExprOf[X] then
6464
self.asInstanceOf[scala.quoted.Expr[X]]
6565
else
6666
throw Exception(

0 commit comments

Comments
 (0)