File tree 1 file changed +2
-3
lines changed
compiler/src/dotty/tools/dotc/typer 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -698,7 +698,7 @@ trait Implicits { self: Typer =>
698
698
}
699
699
def location (preposition : String ) = if (where.isEmpty) " " else s " $preposition $where"
700
700
def userDefinedMessage (annot : Annotation , params : List [String ], args : List [Type ]): Option [String ] =
701
- for (Trees .Literal (Constant (raw : String )) <- annot.argument(0 )) yield {
701
+ for (Trees .Literal (Constant (raw : String )) <- annot.argument(0 )) yield {
702
702
err.userDefinedErrorString(
703
703
raw,
704
704
params,
@@ -720,9 +720,8 @@ trait Implicits { self: Typer =>
720
720
}
721
721
val args = alt.tree match {
722
722
case TypeApply (_, targs) if params.nonEmpty =>
723
- def resolveTypes (targs : List [tpd.Tree ])(implicit ctx : Context ) = {
723
+ def resolveTypes (targs : List [tpd.Tree ])(implicit ctx : Context ) =
724
724
targs.map(a => fullyDefinedType(a.tpe, " type parameter" , a.pos))
725
- }
726
725
resolveTypes(targs)(ctx.fresh.setTyperState(alt.tstate))
727
726
case _ =>
728
727
Nil
You can’t perform that action at this time.
0 commit comments