Skip to content

Commit 7425728

Browse files
committed
WIP
1 parent 37b86e3 commit 7425728

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/src/dotty/tools/dotc/transform/ReifyQuotes.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -564,13 +564,13 @@ class ReifyQuotes extends MacroTransformWithImplicits with InfoTransformer {
564564
/** Transforms the return type
565565
* inline def foo(...): X = ~(...)
566566
* to
567-
* inline def foo(...): Object = (args: Seq[Any]) => ...
567+
* inline def foo(...): Seq[Any] => Object = (args: Seq[Any]) => ...
568568
*/
569569
def transform(tp: Type): Type = tp match {
570570
case tp: PolyType => PolyType(tp.paramNames, tp.paramInfos, transform(tp.resType))
571571
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)
574574
}
575575
transform(tp)
576576
}

0 commit comments

Comments
 (0)