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 f2b0b8a commit ae31b15Copy full SHA for ae31b15
compiler/src/dotty/tools/dotc/parsing/Parsers.scala
@@ -2189,7 +2189,7 @@ object Parsers {
2189
if (!(in.token == LBRACE && scala2ProcedureSyntax(""))) accept(EQUALS)
2190
atPos(in.offset) { constrExpr() }
2191
}
2192
- makeConstructor(Nil, vparamss, rhs).withMods(mods)
+ makeConstructor(Nil, vparamss, rhs).withMods(mods).setComment(in.getDocComment(start))
2193
} else {
2194
val mods1 = addFlag(mods, Method)
2195
val name = ident()
0 commit comments