File tree 2 files changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/cc
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -882,7 +882,7 @@ object CaptureSet:
882
882
++ (recur(rinfo.resType) // add capture set of result
883
883
-- CaptureSet (rinfo.paramRefs.filter(_.isTracked)* )) // but disregard bound parameters
884
884
case tpd @ AppliedType (tycon, args) =>
885
- if followResult && defn.isNonRefinedFunction (tpd) then
885
+ if followResult && defn.isFunctionNType (tpd) then
886
886
recur(args.last)
887
887
// must be (pure) FunctionN type since ImpureFunctions have already
888
888
// been eliminated in selector's dealias. Use capture set of result.
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ extends tpd.TreeTraverser:
49
49
def recur (tp : Type ): Type = tp.dealias match
50
50
case tp @ CapturingType (parent, refs) if ! tp.isBoxed =>
51
51
tp.boxed
52
- case tp1 @ AppliedType (tycon, args) if defn.isNonRefinedFunction (tp1) =>
52
+ case tp1 @ AppliedType (tycon, args) if defn.isFunctionNType (tp1) =>
53
53
val res = args.last
54
54
val boxedRes = recur(res)
55
55
if boxedRes eq res then tp
@@ -129,7 +129,7 @@ extends tpd.TreeTraverser:
129
129
apply(parent)
130
130
case tp @ AppliedType (tycon, args) =>
131
131
val tycon1 = this (tycon)
132
- if defn.isNonRefinedFunction (tp) then
132
+ if defn.isFunctionNType (tp) then
133
133
// Convert toplevel generic function types to dependent functions
134
134
if ! defn.isFunctionSymbol(tp.typeSymbol) && (tp.dealias ne tp) then
135
135
// This type is a function after dealiasing, so we dealias and recurse.
You can’t perform that action at this time.
0 commit comments