Skip to content

Commit 67dadb2

Browse files
committed
Add debug assertion
1 parent 0c13b78 commit 67dadb2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
272272
false
273273
}
274274
val constr = firstParent.decl(nme.CONSTRUCTOR).suchThat(constr => isApplicable(constr.info))
275+
assert(constr.symbol.exists, "error @ " + cls.sourcePos)
275276
New(firstParent, constr.symbol.asTerm, superArgs)
276277
}
277278
ClassDefWithParents(cls, constr, superRef :: otherParents.map(TypeTree(_)), body)

0 commit comments

Comments
 (0)