Skip to content

Commit 6b8f206

Browse files
committed
Fix rebase breakage
1 parent 78e2f86 commit 6b8f206

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/cc/CheckCaptures.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ class CheckCaptures extends Recheck, SymTransformer:
298298
mapOver(tp)
299299
case tp: TypeLambda =>
300300
tp.derivedLambdaType(resType = this(tp.resType))
301-
case tp @ RefinedType(parent, rname, rinfo: MethodType) if defn.isFunctionOrPolyType(tp) =>
301+
case tp @ RefinedType(parent, rname, rinfo: MethodType) if defn.isFunctionType(tp) =>
302302
tp.derivedRefinedType(parent, rname, this(rinfo))
303303
case tp @ AppliedType(tycon, args) if defn.isNonRefinedFunction(tp) =>
304304
mapOver(tp)

0 commit comments

Comments
 (0)