We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 456b13e commit ae2a5dcCopy full SHA for ae2a5dc
compiler/src/dotty/tools/dotc/core/SymUtils.scala
@@ -91,7 +91,7 @@ class SymUtils:
91
self.is(Synthetic) && self.infoOrCompleter.typeSymbol == defn.CBCompanion
92
93
def isDummyCaptureParam(using Context): Boolean =
94
- self.isAllOf(CaptureParam) && !(self.isClass || self.is(Method))
+ self.is(PhantomSymbol) && self.infoOrCompleter.typeSymbol != defn.CBCompanion
95
96
/** Is this a case class for which a product mirror is generated?
97
* Excluded are value classes, abstract classes and case classes with more than one
0 commit comments