Skip to content

Commit 48f0afa

Browse files
committed
address review: use tpe instead of typeOpt
1 parent 29d7656 commit 48f0afa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler/src/dotty/tools/dotc/typer/Implicits.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,6 @@ trait Implicits { self: Typer =>
704704
params,
705705
args)
706706
}
707-
def resolveTypes(targs: List[tpd.Tree])(implicit ctx: Context) = targs.map(a => fullyDefinedType(a.typeOpt, "type parameter", a.pos))
708707
arg.tpe match {
709708
case ambi: AmbiguousImplicits =>
710709
val maybeAnnot = ambi.alt1.ref.symbol.getAnnotation(defn.ImplicitAmbiguousAnnot).map(
@@ -721,6 +720,9 @@ trait Implicits { self: Typer =>
721720
}
722721
val args = alt.tree match {
723722
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+
}
724726
resolveTypes(targs)(ctx.fresh.setTyperState(alt.tstate))
725727
case _ =>
726728
Nil

0 commit comments

Comments
 (0)