Skip to content

Commit 717237e

Browse files
authored
Whoops, forgot lambda
1 parent 5a408c6 commit 717237e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/Definitions.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1781,7 +1781,7 @@ class Definitions {
17811781
}
17821782

17831783
def addSyntheticSymbolsComments(using Context): Unit =
1784-
def add(sym: Symbol, doc: String) = ctx.docCtx.foreach.addDocstring(sym, Some(Comment(NoSpan, doc)))
1784+
def add(sym: Symbol, doc: String) = ctx.docCtx.foreach(_.addDocstring(sym, Some(Comment(NoSpan, doc))))
17851785

17861786
add(AnyClass,
17871787
"""/** Class `Any` is the root of the Scala class hierarchy. Every class in a Scala

0 commit comments

Comments
 (0)