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 7a6fcc1 commit bdd0289Copy full SHA for bdd0289
src/dotty/tools/dotc/ast/tpd.scala
@@ -362,7 +362,7 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
362
val constrSym = modcls.primaryConstructor orElse ctx.newDefaultConstructor(modcls).entered
363
val constr = DefDef(constrSym.asTerm, EmptyTree)
364
val clsdef = ClassDef(modcls, constr, body)
365
- val valdef = ValDef(sym, New(modcls.typeRef))
+ val valdef = ValDef(sym, New(modcls.typeRef).select(constrSym).appliedToNone)
366
Thicket(valdef, clsdef)
367
}
368
0 commit comments