Skip to content

Commit 77c1d1e

Browse files
committed
fix: Emit type apply synthetics
Most of the type apply synthetics have disappeared in scala#15877 because, previously we relies on the `Scala2` flag for filtering out TypeApply synthetics. However, it was hacky, and the capture checking PR makes change on how the compiler put the flags to symbols. As a result, most TypeApply synthetics have disappeared. this commit revives those disappeared type apply synthetics.
1 parent 29e05aa commit 77c1d1e

File tree

2 files changed

+103
-19
lines changed

2 files changed

+103
-19
lines changed

compiler/src/dotty/tools/dotc/semanticdb/SyntheticsExtractor.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class SyntheticsExtractor:
2626
tree match
2727
case tree: TypeApply
2828
if tree.span.isSynthetic &&
29-
tree.args.forall(arg => !arg.symbol.is(Scala2x)) &&
29+
tree.args.forall(arg => !arg.symbol.isDefinedInSource) &&
3030
!tree.span.isZeroExtent =>
3131
visited.add(tree)
3232
val fnTree = tree.fun match

0 commit comments

Comments
 (0)