Skip to content

Commit 5cbe0ab

Browse files
committed
Revert patches of asExprOf
1 parent 102bfd5 commit 5cbe0ab

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
@@ -62,7 +62,7 @@ class QuotesImpl private (using val ctx: Context) extends Quotes, QuoteUnpickler
6262

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

0 commit comments

Comments
 (0)