Skip to content

Commit

Permalink
Use SAM type whenever possible
Browse files Browse the repository at this point in the history
  • Loading branch information
allanrenucci committed Mar 28, 2018
1 parent 482c65b commit 67ff1f2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions compiler/src/dotty/tools/dotc/sbt/ExtractDependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,7 @@ private final class UsedNamesInClass {
names.foreach { case (name, scopes) =>
builder.append(name.mangledString)
builder.append(" in [")
scopes.forEach(new java.util.function.Consumer[UseScope]() { // TODO: Adapt to SAM type when #2732 is fixed
override def accept(scope: UseScope): Unit =
builder.append(scope.toString)
})
scopes.forEach(scope => builder.append(scope.toString))
builder.append("]")
builder.append(", ")
}
Expand Down

0 comments on commit 67ff1f2

Please sign in to comment.