Skip to content

Commit 10932ed

Browse files
committed
address review: style issues
1 parent 48f0afa commit 10932ed

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ trait Implicits { self: Typer =>
698698
}
699699
def location(preposition: String) = if (where.isEmpty) "" else s" $preposition $where"
700700
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 {
702702
err.userDefinedErrorString(
703703
raw,
704704
params,
@@ -720,9 +720,8 @@ trait Implicits { self: Typer =>
720720
}
721721
val args = alt.tree match {
722722
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) =
724724
targs.map(a => fullyDefinedType(a.tpe, "type parameter", a.pos))
725-
}
726725
resolveTypes(targs)(ctx.fresh.setTyperState(alt.tstate))
727726
case _ =>
728727
Nil

0 commit comments

Comments
 (0)