File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -564,13 +564,13 @@ class ReifyQuotes extends MacroTransformWithImplicits with InfoTransformer {
564
564
/** Transforms the return type
565
565
* inline def foo(...): X = ~(...)
566
566
* to
567
- * inline def foo(...): Object = (args: Seq[Any]) => ...
567
+ * inline def foo(...): Seq[Any] => Object = (args: Seq[Any]) => ...
568
568
*/
569
569
def transform (tp : Type ): Type = tp match {
570
570
case tp : PolyType => PolyType (tp.paramNames, tp.paramInfos, transform(tp.resType))
571
571
case tp : MethodType => MethodType (tp.paramNames, tp.paramInfos, transform(tp.resType))
572
- case _ : ExprType => ExprType (defn. ObjectType )
573
- case _ => defn.ObjectType
572
+ case tp : ExprType => ExprType (transform(tp.resType) )
573
+ case _ => defn.FunctionType ( 1 ).appliedTo(defn. SeqType .appliedTo(defn. AnyType ), defn. ObjectType )
574
574
}
575
575
transform(tp)
576
576
}
You can’t perform that action at this time.
0 commit comments