Skip to content

Commit 51c5c41

Browse files
committed
Review fixes
1 parent 5dddf7e commit 51c5c41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/Dependencies.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ abstract class Dependencies(root: ast.tpd.Tree, @constructorOnly rootContext: Co
240240
if isExpr(sym) && isLocal(sym) then markCalled(sym, enclosure)
241241
case tree: New =>
242242
val constr = tree.tpe.typeSymbol.primaryConstructor
243-
if isExpr(constr) then
243+
if constr.exists then
244244
symSet(called, enclosure) += constr
245245
case tree: This =>
246246
narrowTo(tree.symbol.asClass)

0 commit comments

Comments
 (0)