We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac9bb28 commit c109b9bCopy full SHA for c109b9b
compiler/src/dotty/tools/dotc/tastyreflect/ReflectionCompilerInterface.scala
@@ -1604,7 +1604,7 @@ class ReflectionCompilerInterface(val rootContext: core.Contexts.Context) extend
1604
1605
/** Convert `Term` to an `quoted.Expr[Any]` */
1606
def QuotedExpr_seal(self: Term)(given ctx: Context): scala.quoted.Expr[Any] = self.tpe.widen match {
1607
- case mtpe: Types.MethodType => throw new Exception("Cannot seal a partially applied Term. Try eta-expanding the term first.")
+ case _: Types.MethodType | _: Types.PolyType => throw new Exception("Cannot seal a partially applied Term. Try eta-expanding the term first.")
1608
case _ => new scala.internal.quoted.TastyTreeExpr(self, compilerId)
1609
}
1610
0 commit comments