File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -704,6 +704,7 @@ trait Implicits { self: Typer =>
704
704
params,
705
705
args)
706
706
}
707
+ def resolveTypes (targs : List [tpd.Tree ])(implicit ctx : Context ) = targs.map(a => fullyDefinedType(a.typeOpt, " type parameter" , a.pos))
707
708
arg.tpe match {
708
709
case ambi : AmbiguousImplicits =>
709
710
val maybeAnnot = ambi.alt1.ref.symbol.getAnnotation(defn.ImplicitAmbiguousAnnot ).map(
@@ -718,11 +719,10 @@ trait Implicits { self: Typer =>
718
719
case lambda : TypeLambda => lambda.typeParams.map(_.paramName.unexpandedName.toString)
719
720
case _ => Nil
720
721
}
721
- alt.tstate.commit()
722
722
val args = alt.tree match {
723
723
case TypeApply (_, targs) if params.nonEmpty =>
724
- targs.map(a => fullyDefinedType(a.typeOpt, " type parameter " , a.pos ))
725
- case _ =>
724
+ resolveTypes( targs)(ctx.fresh.setTyperState(alt.tstate ))
725
+ case _ =>
726
726
Nil
727
727
}
728
728
userDefinedMessage(annot, params, args)
You can’t perform that action at this time.
0 commit comments