Skip to content

Commit 6394b6f

Browse files
committed
Fix rebase breakage
1 parent 07cd012 commit 6394b6f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/ast/Desugar.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ object desugar {
302302

303303
/** The expansion of a class definition. See inline comments for what is involved */
304304
def classDef(cdef: TypeDef)(implicit ctx: Context): Tree = {
305-
val impl @ Template(constr0, parents, self, _) = cdef.rhs
305+
val impl @ Template(constr0, _, self, _) = cdef.rhs
306306
val className = normalizeClassName(cdef, impl)
307307
val parents = impl.parents
308308
val mods = cdef.mods

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2562,7 +2562,7 @@ object Parsers {
25622562
var mods1 = addMod(mods, instanceMod)
25632563
val wdef =
25642564
if (in.token == LBRACE) {
2565-
val templ = templateBodyOpt(makeConstructor(tparams, vparamss), parents, isEnum = false)
2565+
val templ = templateBodyOpt(makeConstructor(tparams, vparamss), parents, Nil, isEnum = false)
25662566
if (tparams.isEmpty && vparamss.isEmpty) ModuleDef(name, templ)
25672567
else TypeDef(name.toTypeName, templ)
25682568
}

0 commit comments

Comments
 (0)