Skip to content

Commit 43b1626

Browse files
committed
Use RefinedFunctionOf instead of FunctionOrMethod
1 parent eaf441c commit 43b1626

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎compiler/src/dotty/tools/dotc/cc/Capability.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ object Capabilities:
703703
this(CapturingType(parent1, ann.tree.toCaptureSet))
704704
else
705705
t.derivedAnnotatedType(parent1, ann)
706-
case t @ FunctionOrMethod(_, _) if t.isAliasFun =>
706+
case defn.RefinedFunctionOf(_) =>
707707
t // stop at dependent function types
708708
case _ =>
709709
mapFollowingAliases(t)

0 commit comments

Comments
 (0)