Skip to content

Commit ad5c839

Browse files
committed
Keep isErasedFunction in CaptureOps
1 parent d81ca0c commit ad5c839

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ extension (tp: Type)
146146
defn.FunctionType(
147147
fname.functionArity,
148148
isContextual = fname.isContextFunction,
149-
isErased = fname.isErasedFunction, // TODO @natsukagami fix this
149+
isErased = fname.isErasedFunction, // fine as AppliedType(_, _) already unwrapped the refinement away
150150
isImpure = true).appliedTo(args)
151151
case _ =>
152152
tp

0 commit comments

Comments
 (0)