Skip to content

Commit 64fb8d6

Browse files
KacperFKorbantgodzik
authored andcommittedApr 7, 2025
Review fixes
[Cherry-picked 51c5c41]
1 parent 08a0f29 commit 64fb8d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

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

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

0 commit comments

Comments
 (0)