Skip to content

Commit ae2a5dc

Browse files
committed
Fix condition of checking dummy capture params
1 parent 456b13e commit ae2a5dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/SymUtils.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class SymUtils:
9191
self.is(Synthetic) && self.infoOrCompleter.typeSymbol == defn.CBCompanion
9292

9393
def isDummyCaptureParam(using Context): Boolean =
94-
self.isAllOf(CaptureParam) && !(self.isClass || self.is(Method))
94+
self.is(PhantomSymbol) && self.infoOrCompleter.typeSymbol != defn.CBCompanion
9595

9696
/** Is this a case class for which a product mirror is generated?
9797
* Excluded are value classes, abstract classes and case classes with more than one

0 commit comments

Comments
 (0)