Skip to content

Commit 45eb6aa

Browse files
authored
Merge pull request #5393 from dotty-staging/fix/aux-ctor-doc
Store documentation on auxiliary constructors
2 parents 2d407aa + ae31b15 commit 45eb6aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/parsing/Parsers.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2189,7 +2189,7 @@ object Parsers {
21892189
if (!(in.token == LBRACE && scala2ProcedureSyntax(""))) accept(EQUALS)
21902190
atPos(in.offset) { constrExpr() }
21912191
}
2192-
makeConstructor(Nil, vparamss, rhs).withMods(mods)
2192+
makeConstructor(Nil, vparamss, rhs).withMods(mods).setComment(in.getDocComment(start))
21932193
} else {
21942194
val mods1 = addFlag(mods, Method)
21952195
val name = ident()

0 commit comments

Comments
 (0)