Skip to content

Commit a32b6d4

Browse files
committed
Fix rebase breakage
1 parent d9cce80 commit a32b6d4

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
@@ -291,7 +291,7 @@ class CheckCaptures extends Recheck, SymTransformer:
291291
mapOver(tp)
292292
case tp: TypeLambda =>
293293
tp.derivedLambdaType(resType = this(tp.resType))
294-
case tp @ RefinedType(parent, rname, rinfo: MethodType) if defn.isFunctionOrPolyType(tp) =>
294+
case tp @ RefinedType(parent, rname, rinfo: MethodType) if defn.isFunctionType(tp) =>
295295
tp.derivedRefinedType(parent, rname, this(rinfo))
296296
case tp @ AppliedType(tycon, args) if defn.isNonRefinedFunction(tp) =>
297297
mapOver(tp)

0 commit comments

Comments
 (0)