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 639361b commit 6cc124eCopy full SHA for 6cc124e
compiler/src/dotty/tools/dotc/typer/TypeAssigner.scala
@@ -190,7 +190,7 @@ trait TypeAssigner {
190
case ref: NamedType =>
191
if ref.isTracked then
192
if tp.captureSet.accountsFor(ref) then
193
- report.warning(em"redundant capture: $tp already contains $ref with cs ${ref.captureSet} in its capture set ${tp.captureSet}", tree.srcPos)
+ report.warning(em"redundant capture: $tp already contains $ref with capture set ${ref.captureSet} in its capture set ${tp.captureSet}", tree.srcPos)
194
CapturingType(tp, ref)
195
else
196
val reason =
0 commit comments