We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 482c65b commit 67ff1f2Copy full SHA for 67ff1f2
compiler/src/dotty/tools/dotc/sbt/ExtractDependencies.scala
@@ -173,10 +173,7 @@ private final class UsedNamesInClass {
173
names.foreach { case (name, scopes) =>
174
builder.append(name.mangledString)
175
builder.append(" in [")
176
- scopes.forEach(new java.util.function.Consumer[UseScope]() { // TODO: Adapt to SAM type when #2732 is fixed
177
- override def accept(scope: UseScope): Unit =
178
- builder.append(scope.toString)
179
- })
+ scopes.forEach(scope => builder.append(scope.toString))
180
builder.append("]")
181
builder.append(", ")
182
}
0 commit comments