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